Skip to content

Commit

Permalink
template(vite-cloudflare): Add _routes.json, _headers and .dev.vars t…
Browse files Browse the repository at this point in the history
…o .gitignore (#8722)

Co-authored-by: Lasse Kløvstad <lasse.klovstad@ciber.no>
  • Loading branch information
lasseklovstad and lasseklov committed May 22, 2024
1 parent bcde53b commit 960b852
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@
- kumard3
- lachlanjc
- larister
- lasseklovstad
- laughnan
- lawrencecchen
- ledniy
Expand Down
1 change: 1 addition & 0 deletions templates/cloudflare/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ node_modules
/.cache
/build
.env
.dev.vars

.wrangler
4 changes: 4 additions & 0 deletions templates/cloudflare/public/_headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/favicon.ico
Cache-Control: public, max-age=3600, s-maxage=3600
/assets/*
Cache-Control: public, max-age=31536000, immutable
5 changes: 5 additions & 0 deletions templates/cloudflare/public/_routes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"version": 1,
"include": ["/*"],
"exclude": ["/favicon.ico", "/assets/*"]
}

0 comments on commit 960b852

Please sign in to comment.