Some checks failed
DSS Project Analysis / dss-context-update (push) Has been cancelled
- Conditionally enable VitePWA only in production builds - Add service worker auto-unregister script to index.html - Fixes stale content caching issues during development 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
28 lines
901 B
HTML
28 lines
901 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="description" content="DSS Admin - Design System Server Management">
|
|
<meta name="theme-color" content="#0f172a">
|
|
<title>DSS Admin</title>
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
|
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
<script>
|
|
// Unregister any old service workers that may be caching stale content
|
|
if ('serviceWorker' in navigator) {
|
|
navigator.serviceWorker.getRegistrations().then(registrations => {
|
|
registrations.forEach(reg => {
|
|
console.log('Unregistering old service worker:', reg.scope);
|
|
reg.unregister();
|
|
});
|
|
});
|
|
}
|
|
</script>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|