0.0.8 • Published 2 years ago

remix-ssg v0.0.8

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Remix SSG

Simple SSG for Remix.

Read the Docs

Quick Start

  1. Initialize a new remix project:

    npx create-remix@latest

    Choose "Just the basics" and the "Remix App Server" when prompted.

  2. Install remix-ssg and serve to serve the static assets:

    npm install -D remix-ssg serve
  3. Update your package.json scripts to use remix-ssg instead of remix and serve instead of remix-serve:

    {
      "scripts": {
        "build": "remix-ssg public",
        "dev": "remix dev",
        "start": "serve -l 3000 public"
      }
    }
  4. Add a getStaticPaths export to your routes. For example app/routes/index.tsx may look like:

    export function getStaticPaths() {
      return ["/"];
    }
0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago