Static Site Generation with Vite + JSX
Simply build static websites with local and/or remote data.
Built With
- Vite
- Vite Plugin SSR
- JSX
Prerequisites
To run the project, the following dependencies are required
- Node.js
- Bun (Optional, used as runner & package manager here. Can be replaced by the package manager of your choice)
Installation
- Clone the repo
git clone https://github.com/Julien-prrs/vite-ssg-jsx-poc.git && cd vite-ssg-jsx-poc
- Install dependencies
bun install
- Start app in development mode
bun start
Build for production
bun build:prod
Production files are now accessible from under dist/client/
directory!
Serve localy
No need for manual build,
serve
command will automatically build the app on start
bun serve