An open API service indexing awesome lists of open source software.

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

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

***