config envs

This commit is contained in:
Dmitry Belyaev 2021-06-15 15:54:44 +03:00
parent 36829c9025
commit 9c776542d5
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3
3 changed files with 11 additions and 1 deletions

View File

@ -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,

View File

@ -0,0 +1,4 @@
{
"api": "/api/v1",
"url_prefix": ""
}