aboutsummaryrefslogtreecommitdiff
path: root/server/config
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-07-15 23:11:45 +0200
committerMateja <mail@matejamaric.com>2021-07-15 23:11:45 +0200
commit82524d55f5c9c96b523f1c280c870e04e9fc0f0b (patch)
treed790731c867af59c15a2fa5f570bd7e9621edf88 /server/config
parentdf8ab8735bcad64fc76e624940a0538681760775 (diff)
downloadmevn-ecommerce-82524d55f5c9c96b523f1c280c870e04e9fc0f0b.tar.gz
mevn-ecommerce-82524d55f5c9c96b523f1c280c870e04e9fc0f0b.zip
Setup `siteUrl` environment variable.
Diffstat (limited to 'server/config')
-rw-r--r--server/config/env.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/config/env.js b/server/config/env.js
index 441d6b6..e9349d2 100644
--- a/server/config/env.js
+++ b/server/config/env.js
@@ -3,6 +3,7 @@ module.exports = {
port: process.env.PORT || 3000,
mongoUrl: process.env.DB_CONN || "mongodb://localhost/mevn_ecommerce_db",
masterKey: process.env.APP_SECRET || "you-should-use-something-different",
+ siteUrl: process.env.SITE_URL || `http://localhost:${process.env.PORT || 3000}`,
paypalEnvironment: process.env.PAYPAL_ENVIRONMENT || "sandbox",
paypalClientId: process.env.PAYPAL_CLIENT_ID || 'PAYPAL-SANDBOX-CLIENT-ID',
paypalClientSecret: process.env.PAYPAL_CLIENT_SECRET || 'PAYPAL-SANDBOX-CLIENT-SECRET'