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:
@@ -13,7 +13,7 @@
|
|||||||
<title>Worklenz</title>
|
<title>Worklenz</title>
|
||||||
|
|
||||||
<!-- Environment configuration -->
|
<!-- Environment configuration -->
|
||||||
<script type="module" src="/env-config.js"></script>
|
<script src="/env-config.js"></script>
|
||||||
<!-- Unregister service worker -->
|
<!-- Unregister service worker -->
|
||||||
<script src="/unregister-sw.js"></script>
|
<script src="/unregister-sw.js"></script>
|
||||||
<!-- Microsoft Clarity -->
|
<!-- Microsoft Clarity -->
|
||||||
|
|||||||
7
worklenz-frontend/public/env-config.js
Normal file
7
worklenz-frontend/public/env-config.js
Normal 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;
|
||||||
Reference in New Issue
Block a user