{"repo":"Daydreamer-riri/vite-react-ssg","free":true,"listed":false,"github":"https://github.com/Daydreamer-riri/vite-react-ssg","clone":"git clone https://github.com/Daydreamer-riri/vite-react-ssg.git","description":"Static-site generation for React on Vite.","language":"TypeScript","stars":239,"topics":["build","react","ssg","vite","react-ssg","vite-ssg"],"license":"MIT","category":"ui-components","readme_excerpt":"Vite React SSG Static-site generation for React on Vite. See demo(also document): docs [!IMPORTANT] React Router v7 Notice React Router v7 now has built-in SSG support. If you are using React Router v7, we recommend using its official SSG capabilities for better official support and integration. vite-react-ssg will continue to maintain SSG functionality for React Router v6 users. 🎈 Support for @tanstack/router and wouter is in progress! Support for the @tanstack/router router is still experimental, and pathname.lazy.tsx routes are not yet supported. For usage examples, see: main /examples/tanstack/src/main.tsx Table of contents - Usage - Use CSR during development - Extra route options - entry - getStaticPaths - Data fetch - lazy - - Document head - Reactive head - Redirect - Public Base Path - Future config - CSS in JS - Critical CSS - Configuration - Custom Routes to Render - Roadmap - Credits Usage npm i -D vite-react-ssg react-router-dom Use CSR during development Vite React SSG provide SSR (Server-Side Rendering) during development to ensure consistency between development and production as much as possible. But if you want to use CSR during development, just: Single Page SSG For SSG of an index page only (i.e. without react-router-dom ); import vite-react-ssg/single-page instead. Extra route options The RouteObject of vite-react-ssg is based on react-router, and vite-react-ssg receives some additional properties. getStaticPaths The getStaticPaths() function should retu","default_branch":null,"files":null,"tree":[],"storefront":"/r/Daydreamer-riri","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Daydreamer-riri/vite-react-ssg/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}