/vite-ssg-jsx-poc

(POC) Static Site Generation with Vite + JSX (vite-plugin-ssr)

Primary LanguageTypeScript


Static Site Generation with Vite + JSX

Simply build static websites with local and/or remote data.


Built With

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

  1. Clone the repo
git clone https://github.com/Julien-prrs/vite-ssg-jsx-poc.git && cd vite-ssg-jsx-poc
  1. Install dependencies
bun install
  1. 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