1.0.2 • Published 16 days ago

rewrite-vercel v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
16 days ago

Overview

Create vercel.json file with pre-written SPA configurations. No more 404 NOT FOUND on page reload.

Usage

# Install globally
$ npm install -g rewrite-vercel

# Then run this at the root of your project
$ rewrite-vercel
# Or use the npx command without installing globally
$ npx rewrite-vercel

This will create a vercel.json file with the following contents at the root of your project.

{
  "rewrites": [
    {
      "source": "/(.*)",
      "destination": "/index.html"
    }
  ]
}

License

This package is licensed under the MIT License.

1.0.2

16 days ago

1.0.1

16 days ago

1.0.0

1 year ago