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
|
RUN npm i -g serve
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
ENV NODE_ENV=stg
|
ENV NODE_ENV=development
|
||||||
|
ENV BE_URL=https://stg-be.samliu.io.vn/
|
||||||
|
|
||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|
@ -4,7 +4,7 @@ services:
|
|||||||
image: fuware-fe
|
image: fuware-fe
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile.stg
|
dockerfile: Dockerfile.dev
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 16001:3000
|
- 16001:3000
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
const BASE_URL =
|
const BASE_URL = import.meta.env.BE_URL
|
||||||
import.meta.env.NODE_ENV === 'stg' ? 'https://stg-be.samliu.io.vn/' : ''
|
|
||||||
|
|
||||||
console.log(BASE_URL)
|
console.log(BASE_URL)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user