mirror of
https://github.com/FJurmanovic/wallet-web.git
synced 2026-02-05 21:58:10 +00:00
production config
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,3 +1,2 @@
|
||||
node_modules
|
||||
.env
|
||||
public
|
||||
.env
|
||||
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 = {}
|
||||
if (env && env.env) {
|
||||
switch (env.env) {
|
||||
case "production":
|
||||
settings = require("./src/configs/production/app-settings.json");
|
||||
break;
|
||||
case "testing":
|
||||
settings = require("./src/configs/testing/app-settings.json");
|
||||
break;
|
||||
@@ -28,7 +31,7 @@ module.exports = (env, args) => {
|
||||
settings = require("./src/configs/development/app-settings.json");
|
||||
}
|
||||
} else {
|
||||
settings = require("./src/configs/development/app-settings.json");
|
||||
settings = require("./src/configs/development/app-settings.json");
|
||||
}
|
||||
return {
|
||||
entry: {
|
||||
|
||||
Reference in New Issue
Block a user