1.2.0 • Published 2 years ago

@sonicgarden/next-csr-rewrites-generator v1.2.0

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

next-csr-rewrites-generator

Deploy helper command to generate rewrite rules for Next.js CSR application

Installation

Usage

Add this command to your deployment script (The following is for deploying to firebase hosting)

package.json:

Note: of course, you can alos run this command manually!

Command usage

Generated hosting rewrite rules

When the following files exist in the deploy directory

The following rewrite rules will be added to firebase.json (cleanUrls will be added together)

Note: rewrite rules other than dynamic routing will not be updated.