mirror of
https://github.com/FJurmanovic/wallet-web.git
synced 2026-02-06 06:08:10 +00:00
production config
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,2 @@
|
|||||||
node_modules
|
node_modules
|
||||||
.env
|
.env
|
||||||
public
|
|
||||||
1
public/_redirects
Normal file
1
public/_redirects
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/* /index.html 200
|
||||||
6
src/configs/production/app-settings.json
Normal file
6
src/configs/production/app-settings.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"apiUrl": "main-wallet--dtnyc2vcdgu2re9j-gtw.qovery.io",
|
||||||
|
"apiVersion": "v1",
|
||||||
|
"ssl": true,
|
||||||
|
"appName": "Wallets"
|
||||||
|
}
|
||||||
@@ -20,6 +20,9 @@ module.exports = (env, args) => {
|
|||||||
let settings = {}
|
let settings = {}
|
||||||
if (env && env.env) {
|
if (env && env.env) {
|
||||||
switch (env.env) {
|
switch (env.env) {
|
||||||
|
case "production":
|
||||||
|
settings = require("./src/configs/production/app-settings.json");
|
||||||
|
break;
|
||||||
case "testing":
|
case "testing":
|
||||||
settings = require("./src/configs/testing/app-settings.json");
|
settings = require("./src/configs/testing/app-settings.json");
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user