chore: append manifest in edge file only in prod env

This commit is contained in:
Sonny
2025-08-06 19:15:50 +02:00
parent 8b176e3d0e
commit d56bd1ef80
3 changed files with 18 additions and 5 deletions

View File

@@ -17,10 +17,6 @@
href='/favicon.png'
type='image/png'
/>
<link
rel='manifest'
href='/assets/manifest.webmanifest'
/>
<link
rel='apple-touch-icon'
href='/favicon.png'
@@ -30,6 +26,11 @@
href='/favicon.png'
/>
<title inertia>MyLinks</title>
@if(nodeEnv === 'production')
<link
rel='manifest'
href='/assets/manifest.webmanifest'
/>
<script defer>
if('serviceWorker' in navigator) {
window.addEventListener('load', () => {
@@ -37,6 +38,7 @@
})
}
</script>
@endif
@routes()
@inertiaHead()