Quick Start
Initialize a new remix project:
npx create-remix@latestChoose "Just the basics" and the "Remix App Server" when prompted.
Install
remix-ssgandserveto serve the static assets:npm install -D remix-ssg serveUpdate your
package.jsonscriptsto useremix-ssginstead ofremixandserveinstead ofremix-serve:{ "scripts": { "build": "remix-ssg public", "dev": "remix dev", "start": "serve -l 3000 public" } }Add a
getStaticPathsexport to your routes. For exampleapp/routes/index.tsxmay look like:export function getStaticPaths() { return ["/"]; }