๐Ÿ“ฆ noxify / vite-rsc-ssg-renoun

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching
๐Ÿ“ฅ Clone https://github.com/noxify/vite-rsc-ssg-renoun.git
HTTPS git clone https://github.com/noxify/vite-rsc-ssg-renoun.git
SSH git clone git@github.com:noxify/vite-rsc-ssg-renoun.git
CLI gh repo clone noxify/vite-rsc-ssg-renoun
Marcus Reinhardt Marcus Reinhardt update basePathname a0b52bd 4 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .vscode
๐Ÿ“ content
๐Ÿ“ public
๐Ÿ“ src
๐Ÿ“ types
๐Ÿ“„ .gitignore
๐Ÿ“„ .nvmrc
๐Ÿ“„ components.json
๐Ÿ“„ eslint.config.js
๐Ÿ“„ package.json
๐Ÿ“„ pnpm-lock.yaml
๐Ÿ“„ prettier.config.js
๐Ÿ“„ README.md
๐Ÿ“„ tsconfig.json
๐Ÿ“„ vite.config.ts
๐Ÿ“„ README.md

Vite RSC SSG Example with Renoun Integration

Features

  • renoun: Create engaging, interactive, and valid content with the renoun toolkit
  • Next.js-like routing with dynamic parameters ([slug], [...slug])
  • Static Site Generation (SSG) and Server Side Rendering (SSR)
  • Automatic route types: Type-safe PageProps<T> for all routes
  • Param support for pages and layouts (params, searchParams)
  • MDX with client & server components

Installation

git clone git@github.com:noxify/vite-rsc-ssg-renoun.git
cd vite-rsc-ssg-renoun
pnpm i

Quick start

pnpm dev        # Development
pnpm build      # SSG/SSR build
pnpm preview    # Preview

Additional Notes

  • This repository is mainly an experiment to implement renoun in a Vite app. I highly recommend Waku, which is also built on top of Vite and works with renoun, too
  • You should definitely check out vite-plugin-rsc-pages if you're looking for a Next.js app router-like page integration
  • The router code is inspired by the Next.js implementation and was generated with GitHub Copilot
  • This repository is based on the SSG example from Vite