Merge pull request #174 from Worklenz/imp/task-list-performance-fixes

fix(index.html): change script type for env-config.js to improve comp…
This commit is contained in:
Chamika J
2025-06-21 19:21:02 +05:30
committed by GitHub
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;