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 {
|
||||
...config,
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"api": "/api/v1",
|
||||
"url_prefix": ""
|
||||
}
|
Loading…
Reference in New Issue