diff --git a/frontend/.env b/frontend/.env index 28381cc1..f0fa7c0a 100644 --- a/frontend/.env +++ b/frontend/.env @@ -1 +1 @@ -VUE_APP_API_BASE_URL= +VITE_APP_API_BASE_URL= diff --git a/frontend/.env.analyze b/frontend/.env.analyze deleted file mode 100644 index 65454e70..00000000 --- a/frontend/.env.analyze +++ /dev/null @@ -1,2 +0,0 @@ -NODE_ENV='analyze' -VUE_APP_API_BASE_URL=http://localhost:8000 diff --git a/frontend/.env.development b/frontend/.env.development index 3d2c6fb9..dd2e38d0 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -1 +1 @@ -VUE_APP_API_BASE_URL=http://localhost:8000 +VITE_APP_API_BASE_URL=http://localhost:8000 diff --git a/frontend/Dockerfile b/frontend/Dockerfile index cf9c67b6..84cefded 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,6 +1,10 @@ # Build stage FROM node:20-alpine AS build +# Arguments and environment variables for building packages +ARG VITE_APP_API_BASE_URL=/api +ENV VITE_APP_API_BASE_URL ${VITE_APP_API_BASE_URL} + # Set the working directory in the container WORKDIR /app