directing webserver traffic to indexV2.html to force V1 users to re-cache

This commit is contained in:
Carter 2025-06-04 14:15:04 -06:00
parent b710c03ede
commit f328c4036a
2 changed files with 20 additions and 1 deletions

14
indexV2.html Normal file
View file

@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/x-icon" id="favicon-link" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title id="title-id">Adaptive Dashboard</title>
<link rel="manifest" id="manifest-link" />
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/app/main.tsx"></script>
</body>
</html>

View file

@ -61,7 +61,12 @@ http {
expires $cache_expires;
root /usr/share/nginx/html;
try_files $uri /index.html;
try_files $uri /indexV2.html;
location = /index.html {
return 301 /indexV2.html;
}
}
# Healthcheck