This commit is contained in:
parent
bf275844d2
commit
049164596c
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,6 +11,7 @@ node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
.env
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
|
@ -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_LOGOUT = `${BASE_URL}/api/auth/logout`
|
||||
|
@ -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 {
|
||||
...config_sv,
|
||||
server: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user