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.
This commit is contained in:
chamiakJ
2025-06-21 19:20:36 +05:30
parent be26d241c0
commit b63df394cc
2 changed files with 8 additions and 1 deletions

View File

@@ -13,7 +13,7 @@
<title>Worklenz</title>
<!-- Environment configuration -->
<script type="module" src="/env-config.js"></script>
<script src="/env-config.js"></script>
<!-- Unregister service worker -->
<script src="/unregister-sw.js"></script>
<!-- Microsoft Clarity -->

View File

@@ -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;