update env
All checks were successful
Gitea Actions Demo / check (push) Successful in 24s

This commit is contained in:
Sam Liu 2024-09-30 18:13:12 +07:00
parent 049164596c
commit ab57d64006
3 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,8 @@ RUN pnpm install --prefer-offline=true --frozen-lockfile=true
RUN npm i -g serve
COPY . .
ENV NODE_ENV=stg
ENV NODE_ENV=development
ENV BE_URL=https://stg-be.samliu.io.vn/
RUN pnpm build

View File

@ -4,7 +4,7 @@ services:
image: fuware-fe
build:
context: .
dockerfile: Dockerfile.stg
dockerfile: Dockerfile.dev
restart: always
ports:
- 16001:3000

View File

@ -1,5 +1,4 @@
const BASE_URL =
import.meta.env.NODE_ENV === 'stg' ? 'https://stg-be.samliu.io.vn/' : ''
const BASE_URL = import.meta.env.BE_URL
console.log(BASE_URL)