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",