remix-ssg
v0.0.8
Published
Simple SSG for [Remix](https://remix.run/).
Downloads
303
Readme
Remix SSG
Simple SSG for Remix.
Quick Start
Initialize a new remix project:
npx create-remix@latest
Choose "Just the basics" and the "Remix App Server" when prompted.
Install
remix-ssg
andserve
to serve the static assets:npm install -D remix-ssg serve
Update your
package.json
scripts
to useremix-ssg
instead ofremix
andserve
instead ofremix-serve
:{ "scripts": { "build": "remix-ssg public", "dev": "remix dev", "start": "serve -l 3000 public" } }
Add a
getStaticPaths
export to your routes. For exampleapp/routes/index.tsx
may look like:export function getStaticPaths() { return ["/"]; }