From 43fe616ec4dfdeed1d110c0499b21006fc18f752 Mon Sep 17 00:00:00 2001 From: beefchimi Date: Sun, 21 Jul 2024 19:59:34 -0400 Subject: [PATCH] :sparkles: [Netlify] Follow instructions for PWA toml --- netlify.toml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index a1680b2..d5d1a10 100644 --- a/netlify.toml +++ b/netlify.toml @@ -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 + '''