From b63df394cc70e30f66bbca48171b0f93d4ff1866 Mon Sep 17 00:00:00 2001 From: chamiakJ Date: Sat, 21 Jun 2025 19:20:36 +0530 Subject: [PATCH] fix(index.html): change script type for env-config.js to improve compatibility feat(env-config): add env-config.js for development environment setup - Updated index.html to use a standard script tag for env-config.js. - Introduced env-config.js as a development placeholder for environment variables, allowing fallback to build-time env vars. --- worklenz-frontend/index.html | 2 +- worklenz-frontend/public/env-config.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 worklenz-frontend/public/env-config.js diff --git a/worklenz-frontend/index.html b/worklenz-frontend/index.html index 15afe141..ba93ca2c 100644 --- a/worklenz-frontend/index.html +++ b/worklenz-frontend/index.html @@ -13,7 +13,7 @@ Worklenz - + diff --git a/worklenz-frontend/public/env-config.js b/worklenz-frontend/public/env-config.js new file mode 100644 index 00000000..2e582288 --- /dev/null +++ b/worklenz-frontend/public/env-config.js @@ -0,0 +1,7 @@ +// Development placeholder for env-config.js +// In production, this file is dynamically generated with actual environment values +// For development, we let the application fall back to import.meta.env variables + +// Set undefined values so the application falls back to build-time env vars +window.VITE_API_URL = undefined; +window.VITE_SOCKET_URL = undefined; \ No newline at end of file