From 0d53e2e4e8a5a916fce5eae3bae66c85280107a4 Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Mon, 8 Aug 2022 14:48:59 +0200 Subject: [PATCH] add staging environment and set as default build (for the static site) --- src/Umbraco.Web.UI.Client/.env.production | 2 -- src/Umbraco.Web.UI.Client/.env.staging | 2 ++ src/Umbraco.Web.UI.Client/package.json | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 src/Umbraco.Web.UI.Client/.env.staging diff --git a/src/Umbraco.Web.UI.Client/.env.production b/src/Umbraco.Web.UI.Client/.env.production index 9c9e02472c..4c064d9973 100644 --- a/src/Umbraco.Web.UI.Client/.env.production +++ b/src/Umbraco.Web.UI.Client/.env.production @@ -1,4 +1,2 @@ -# Copy this to .env.local and change what you want to test. VITE_UMBRACO_INSTALL_STATUS=running # running or must-install or must-upgrade -VITE_UMBRACO_INSTALL_PRECONFIGURED=false VITE_UMBRACO_USE_MSW=off diff --git a/src/Umbraco.Web.UI.Client/.env.staging b/src/Umbraco.Web.UI.Client/.env.staging new file mode 100644 index 0000000000..caf5203dd8 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/.env.staging @@ -0,0 +1,2 @@ +VITE_UMBRACO_INSTALL_STATUS=running # running or must-install or must-upgrade +VITE_UMBRACO_USE_MSW=on diff --git a/src/Umbraco.Web.UI.Client/package.json b/src/Umbraco.Web.UI.Client/package.json index e3d8a82f92..40b06e150a 100644 --- a/src/Umbraco.Web.UI.Client/package.json +++ b/src/Umbraco.Web.UI.Client/package.json @@ -17,7 +17,8 @@ }, "scripts": { "dev": "vite", - "build": "tsc && vite build", + "build": "tsc && vite build --mode staging", + "build:production": "tsc && vite build", "preview": "vite preview --open", "test": "web-test-runner --coverage", "test:watch": "web-test-runner --watch",