This commit is contained in:
parent
049164596c
commit
ab57d64006
@ -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
|
||||
|
@ -4,7 +4,7 @@ services:
|
||||
image: fuware-fe
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.stg
|
||||
dockerfile: Dockerfile.dev
|
||||
restart: always
|
||||
ports:
|
||||
- 16001:3000
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user