Skip to content

Commit

Permalink
[Closes #163] Set text/html content type on SSR index file reply. Ser…
Browse files Browse the repository at this point in the history
…ve static assets. (#164)

* [Closes #163] Set text/html content type on SSR index file reply. Serve static assets.

* Move favicon to public/assets
  • Loading branch information
francisli authored Jan 4, 2025
1 parent ffe60a3 commit eee46c7
Show file tree
Hide file tree
Showing 5 changed files with 162 additions and 23 deletions.
2 changes: 1 addition & 1 deletion client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/assets/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
<script>
Expand Down
File renamed without changes
173 changes: 152 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@aws-sdk/cloudfront-signer": "^3.709.0",
"@aws-sdk/s3-request-presigner": "^3.717.0",
"@fastify/autoload": "^6.0.0",
"@fastify/sensible": "^6.0.0",
"@fastify/static": "^8.0.3",
"@fastify/swagger": "^9.4.0",
"@fastify/url-data": "^6.0.2",
"@prisma/client": "^6.1.0",
Expand Down
Loading

0 comments on commit eee46c7

Please sign in to comment.