Gjør PWA-stier relative for fleksibel utrulling
Appen kan nå serveres både på / og under en understi som /tilfluktsrom uten endringer. - Sett base: './' i vite.config.ts - Endre alle absolutte stier i index.html til relative - Oppdater manifest.webmanifest med start_url: "." og scope: "." - navigateFallback uten ledende skråstrek Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
8e6dbb6b24
commit
85c3d6953c
3 changed files with 10 additions and 8 deletions
|
|
@ -2,20 +2,21 @@
|
|||
"name": "Tilfluktsrom",
|
||||
"short_name": "Tilfluktsrom",
|
||||
"description": "Find the nearest public shelter in Norway",
|
||||
"start_url": "/",
|
||||
"start_url": ".",
|
||||
"scope": ".",
|
||||
"display": "standalone",
|
||||
"orientation": "portrait",
|
||||
"theme_color": "#1A1A2E",
|
||||
"background_color": "#1A1A2E",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/icons/icon-192.png",
|
||||
"src": "icons/icon-192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png",
|
||||
"purpose": "any maskable"
|
||||
},
|
||||
{
|
||||
"src": "/icons/icon-512.png",
|
||||
"src": "icons/icon-512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "any maskable"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue