diff --git a/.gitignore b/.gitignore index c9d357f..1dcef2d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ node_modules -.env -public \ No newline at end of file +.env \ No newline at end of file diff --git a/public/_redirects b/public/_redirects new file mode 100644 index 0000000..a0333dd --- /dev/null +++ b/public/_redirects @@ -0,0 +1 @@ +/* /index.html 200 \ No newline at end of file diff --git a/src/configs/production/app-settings.json b/src/configs/production/app-settings.json new file mode 100644 index 0000000..fbefa00 --- /dev/null +++ b/src/configs/production/app-settings.json @@ -0,0 +1,6 @@ +{ + "apiUrl": "main-wallet--dtnyc2vcdgu2re9j-gtw.qovery.io", + "apiVersion": "v1", + "ssl": true, + "appName": "Wallets" +} \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js index 1116046..995811d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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: {