This commit is contained in:
Sam Liu 2024-09-30 18:23:10 +07:00
parent ab57d64006
commit 61035bc431
3 changed files with 2 additions and 5 deletions

@ -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',
},
},
}
})