From 51a842ed8c23ec7ca0e2827528b6adf7635b0d87 Mon Sep 17 00:00:00 2001 From: Rashad Philizaire Date: Sat, 1 Jun 2024 11:22:14 -0400 Subject: [PATCH] fix --- docker-scripts/entrypoint.sh | 1 + src/frontend/.env.production | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 src/frontend/.env.production diff --git a/docker-scripts/entrypoint.sh b/docker-scripts/entrypoint.sh index fc1a6d4..b2f5ef3 100644 --- a/docker-scripts/entrypoint.sh +++ b/docker-scripts/entrypoint.sh @@ -10,6 +10,7 @@ run_backend() { run_frontend() { cd /workspace/src/frontend + pnpm build echo "Running frontend" pm2 start pnpm -- start } diff --git a/src/frontend/.env.production b/src/frontend/.env.production new file mode 100644 index 0000000..6396c86 --- /dev/null +++ b/src/frontend/.env.production @@ -0,0 +1,5 @@ +# This file is only required for deploying on Vercel +# The root level .env file is used for local development with Docker + +NEXT_PUBLIC_API_URL=http://localhost:8000 +NEXT_PUBLIC_LOCAL_MODE_ENABLED=true