This commit is contained in:
parent
ab57d64006
commit
61035bc431
@ -10,7 +10,7 @@ RUN npm i -g serve
|
||||
|
||||
COPY . .
|
||||
ENV NODE_ENV=development
|
||||
ENV BE_URL=https://stg-be.samliu.io.vn/
|
||||
ENV VITE_BE_URL=https://stg-be.samliu.io.vn
|
||||
|
||||
RUN pnpm build
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
const BASE_URL = import.meta.env.BE_URL
|
||||
const BASE_URL = import.meta.env.VITE_BE_URL ?? ''
|
||||
|
||||
console.log(BASE_URL)
|
||||
|
||||
|
@ -61,9 +61,6 @@ export default defineConfig(({ mode }) => {
|
||||
watch: {
|
||||
usePolling: true,
|
||||
},
|
||||
proxy: {
|
||||
'/api': 'http://localhost:9000',
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user