{"repo":"progfay/nextjs-ssg-rewrite-rule-gen","free":true,"listed":false,"github":"https://github.com/progfay/nextjs-ssg-rewrite-rule-gen","clone":"git clone https://github.com/progfay/nextjs-ssg-rewrite-rule-gen.git","description":"Generate nginx rewrite rules for Next.js SSG (Pages Router)","language":"TypeScript","stars":13,"topics":["nextjs","nginx","pages-router","rewrite-rules","ssg","static-export"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"@progfay/nextjs-ssg-rewrite-rule-gen Description Next.js supports Static Exports. However, it's a lot of work to manage the routing for the generated file without Vercel. Dynamic Routes feature makes routing more difficult. This application automatically generates nginx rewrite rules for generated files. Requirements - Next.js (Pages Router only) - nginx Installation Configuration [!NOTE] This application is available with zero configuration. You can run this application with config in following command: nextjs-ssg-rewrite-rule-gen --config config.json Available configs: - pagesDirPath : customize path for pages directory - ignoreRoutes : exclude specific paths from outputs - nginxConfigs : customize configuration inside of nginx location directive - pattern : pattern string of RegExp - directives : additional nginx directives - basePath : next.config.js Options: basePath Next.js - trailingSlash : next.config.js Options: trailingSlash Next.js How to work pages directory: ↓ Generated files with Static Exports ( next build and output: \"export\" ): ↓ nginx rewrite rules (generated by @progfay/nextjs-ssg-rewrite-rule-gen ):","default_branch":null,"files":null,"tree":[],"storefront":"/r/progfay","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/progfay/nextjs-ssg-rewrite-rule-gen/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."}