Skip to content

Commit

Permalink
✨ [Netlify] Follow instructions for PWA toml
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi committed Jul 21, 2024
1 parent 763e64e commit 43fe616
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
[build]
command = "npm run build"
publish = "dist"
command = "npm run build"

[[redirects]]
from = "/*"
to = "/index.html"
status = 200

[[headers]]
for = "/manifest.webmanifest"
[headers.values]
Content-Type = "application/manifest+json"

[[headers]]
for = "/assets/*"
[headers.values]
cache-control = '''
max-age=31536000,
immutable
'''

0 comments on commit 43fe616

Please sign in to comment.