From fef253c62f0c51626b2bbcf7fa0cd97eb8d820d3 Mon Sep 17 00:00:00 2001 From: Mo Date: Thu, 16 Jun 2022 13:38:48 -0500 Subject: [PATCH] fix(desktop): commit public env config --- packages/desktop/.env.public.development | 4 ++++ packages/desktop/.env.public.production | 4 ++++ packages/desktop/.env.sample | 1 - packages/desktop/.gitignore | 2 -- packages/desktop/desktop.webpack.common.js | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 packages/desktop/.env.public.development create mode 100644 packages/desktop/.env.public.production delete mode 100644 packages/desktop/.env.sample diff --git a/packages/desktop/.env.public.development b/packages/desktop/.env.public.development new file mode 100644 index 000000000..bda521aaa --- /dev/null +++ b/packages/desktop/.env.public.development @@ -0,0 +1,4 @@ +PURCHASE_URL=https://website-dev.standardnotes.com/purchase +PLANS_URL=https://website-dev.standardnotes.com/plans +DASHBOARD_URL=https://website-dev.standardnotes.com/dashboard +DEFAULT_SYNC_SERVER=https://api-dev.standardnotes.com \ No newline at end of file diff --git a/packages/desktop/.env.public.production b/packages/desktop/.env.public.production new file mode 100644 index 000000000..6361b5a6c --- /dev/null +++ b/packages/desktop/.env.public.production @@ -0,0 +1,4 @@ +PURCHASE_URL=https://standardnotes.com/purchase +PLANS_URL=https://standardnotes.com/plans +DASHBOARD_URL=https://standardnotes.com/dashboard +DEFAULT_SYNC_SERVER=https://api.standardnotes.com \ No newline at end of file diff --git a/packages/desktop/.env.sample b/packages/desktop/.env.sample deleted file mode 100644 index 1f3308255..000000000 --- a/packages/desktop/.env.sample +++ /dev/null @@ -1 +0,0 @@ -DEFAULT_SYNC_SERVER=https://api.standardnotes.com \ No newline at end of file diff --git a/packages/desktop/.gitignore b/packages/desktop/.gitignore index 8fee389e5..aad888dee 100644 --- a/packages/desktop/.gitignore +++ b/packages/desktop/.gitignore @@ -8,8 +8,6 @@ test/data/tmp/ .vscode .idea .env -.env.production -.env.development codeqldb yarn-error.log \ No newline at end of file diff --git a/packages/desktop/desktop.webpack.common.js b/packages/desktop/desktop.webpack.common.js index 334e7c55a..1d79ac778 100644 --- a/packages/desktop/desktop.webpack.common.js +++ b/packages/desktop/desktop.webpack.common.js @@ -1,6 +1,6 @@ const env = process.env.NODE_ENV ?? 'production' require('dotenv').config({ - path: `.env.${env}`, + path: `.env.public.${env}`, }) const path = require('path')