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

This commit is contained in:
Sam Liu 2024-09-30 18:05:42 +07:00
parent bf275844d2
commit 049164596c
3 changed files with 5 additions and 19 deletions

1
.gitignore vendored
View File

@ -11,6 +11,7 @@ node_modules
dist dist
dist-ssr dist-ssr
*.local *.local
.env
# Editor directories and files # Editor directories and files
.vscode/* .vscode/*

View File

@ -1,4 +1,7 @@
const BASE_URL = '' const BASE_URL =
import.meta.env.NODE_ENV === 'stg' ? 'https://stg-be.samliu.io.vn/' : ''
console.log(BASE_URL)
export const POST_LOGIN = `${BASE_URL}/api/auth/login` export const POST_LOGIN = `${BASE_URL}/api/auth/login`
export const POST_LOGOUT = `${BASE_URL}/api/auth/logout` export const POST_LOGOUT = `${BASE_URL}/api/auth/logout`

View File

@ -51,24 +51,6 @@ export default defineConfig(({ mode }) => {
} }
} }
if (env.NODE_ENV === 'stg') {
return {
...config_sv,
server: {
https: false,
host: false,
port: 5001,
strictPort: true,
watch: {
usePolling: true,
},
proxy: {
'/api': 'https://stg-be.samliu.io.vn',
},
},
}
}
return { return {
...config_sv, ...config_sv,
server: { server: {