Skip to content

Commit

Permalink
fix: add _headers (#418)
Browse files Browse the repository at this point in the history
IDK why but cloudflare pages is not setting `Content-Type` header. This
PR adds a [`_headers`
file](https://developers.cloudflare.com/pages/platform/headers) that
sets them for the file types we currently generate.
  • Loading branch information
Alan Shaw authored Mar 22, 2023
1 parent a5abad5 commit 4eb1da1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/react/w3console/public/_headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*.html
Content-Type: text/html
/*.css
Content-Type: text/css
/*.js
Content-Type: text/javascript
/*.ico
Content-Type: image/vnd.microsoft.icon
/*.svg
Content-Type: image/svg+xml

0 comments on commit 4eb1da1

Please sign in to comment.