https://github.com/kuc-arc-f/fastify_2vite
fastify SSR + React sample
https://github.com/kuc-arc-f/fastify_2vite
fastify react vercel vite
Last synced: 3 months ago
JSON representation
fastify SSR + React sample
- Host: GitHub
- URL: https://github.com/kuc-arc-f/fastify_2vite
- Owner: kuc-arc-f
- License: mit
- Created: 2024-02-04T09:22:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-10T22:08:38.000Z (about 1 year ago)
- Last Synced: 2025-05-18T11:33:05.089Z (about 1 year ago)
- Topics: fastify, react, vercel, vite
- Language: TypeScript
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fastify_2vite
Version: 0.9.1
Author :
date : 2024/02/03
update : 2025/04/09
***
### Summary
fastify SSR + React SPA sample
* vercel deploy sample
***
### react-build
```
npx esbuild --bundle ./src/client.tsx --format=esm --minify --outfile=./public/static/client.js
# watch-mode
npx esbuild --bundle ./src/client.tsx --format=esm --minify --outfile=./public/static/client.js --watch
```
* dev-start
```
yarn dev
```
* build
```
yarn build
```
***
### Setup
* .env , sample
* external API Server
```
VITE_API_URL=http://localhost
```
***
### tailwindcss
```
npx tailwindcss -i ./src/main.css -o ./public/static/main.css
# wacth-mode
npx tailwindcss -i ./src/main.css -o ./public/static/main.css --watch
```
***
### blog
https://zenn.dev/knaka0209/scraps/460f4db1607b94
***