config envs
This commit is contained in:
parent
36829c9025
commit
9c776542d5
@ -1,4 +1,10 @@
|
|||||||
import config from "@/config.json";
|
let config;
|
||||||
|
|
||||||
|
if ("production" == process.env.NODE_EN) {
|
||||||
|
config = require("@/config/production.json");
|
||||||
|
} else {
|
||||||
|
config = require("@/config/test.json");
|
||||||
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
...config,
|
...config,
|
||||||
|
4
src/config/production.json
Normal file
4
src/config/production.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"api": "/api/v1",
|
||||||
|
"url_prefix": ""
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user