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')