From c98ed0d026ffb05ed609621d5a1c484182dd24a4 Mon Sep 17 00:00:00 2001 From: laklov Date: Thu, 8 Feb 2024 21:35:12 +0100 Subject: [PATCH 1/2] template(vite-cloudflare): Add _routes.json, _headers and .dev.vars to .gitignore --- templates/unstable-vite-cloudflare/.gitignore | 1 + templates/unstable-vite-cloudflare/public/_headers | 4 ++++ templates/unstable-vite-cloudflare/public/_routes.json | 5 +++++ 3 files changed, 10 insertions(+) create mode 100644 templates/unstable-vite-cloudflare/public/_headers create mode 100644 templates/unstable-vite-cloudflare/public/_routes.json diff --git a/templates/unstable-vite-cloudflare/.gitignore b/templates/unstable-vite-cloudflare/.gitignore index 541e1f23367..464354906a6 100644 --- a/templates/unstable-vite-cloudflare/.gitignore +++ b/templates/unstable-vite-cloudflare/.gitignore @@ -3,5 +3,6 @@ node_modules /.cache /build .env +.dev.vars .wrangler diff --git a/templates/unstable-vite-cloudflare/public/_headers b/templates/unstable-vite-cloudflare/public/_headers new file mode 100644 index 00000000000..f9e27775202 --- /dev/null +++ b/templates/unstable-vite-cloudflare/public/_headers @@ -0,0 +1,4 @@ +/favicon.ico + Cache-Control: public, max-age=3600, s-maxage=3600 +/assets/* + Cache-Control: public, max-age=31536000, immutable diff --git a/templates/unstable-vite-cloudflare/public/_routes.json b/templates/unstable-vite-cloudflare/public/_routes.json new file mode 100644 index 00000000000..b042b3ec08a --- /dev/null +++ b/templates/unstable-vite-cloudflare/public/_routes.json @@ -0,0 +1,5 @@ +{ + "version": 1, + "include": ["/*"], + "exclude": ["/favicon.ico", "/assets/*"] +} From 6ede303ecdbbbb94d9399adcd80c978813716868 Mon Sep 17 00:00:00 2001 From: laklov Date: Thu, 8 Feb 2024 22:04:19 +0100 Subject: [PATCH 2/2] Add name to contributors --- contributors.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/contributors.yml b/contributors.yml index 5912571b083..10ab199d7ad 100644 --- a/contributors.yml +++ b/contributors.yml @@ -344,6 +344,7 @@ - kumard3 - lachlanjc - larister +- lasseklovstad - laughnan - lawrencecchen - ledniy