Skip to content

johurul-haque/rewrite-vercel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks