mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-03-13 15:39:18 +08:00
make axios use the right hosts
This commit is contained in:
parent
8420e889aa
commit
0de79386e0
@ -7,6 +7,7 @@ require('dotenv').config();
|
||||
|
||||
const proxyHost = process.env.proxyHost || 'http://localhost:8080';
|
||||
const authHost = process.env.authHost || 'http://localhost:8000';
|
||||
const publicHost = process.env.PUBLIC_HOST || 'http://localhost:3000';
|
||||
const host = process.env.host || 'localhost';
|
||||
|
||||
export default {
|
||||
@ -122,4 +123,16 @@ export default {
|
||||
loading: {
|
||||
continuous: true,
|
||||
},
|
||||
|
||||
publicRuntimeConfig: {
|
||||
axios: {
|
||||
browserBaseURL: publicHost,
|
||||
},
|
||||
},
|
||||
|
||||
privateRuntimeConfig: {
|
||||
axios: {
|
||||
baseURL: proxyHost,
|
||||
},
|
||||
},
|
||||
} as NuxtConfig;
|
||||
|
Loading…
x
Reference in New Issue
Block a user