Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/johurul-haque/rewrite-vercel

Create vercel.json file with pre-written SPA configuration. No more 404 on page reload.
https://github.com/johurul-haque/rewrite-vercel

Last synced: 5 days ago
JSON representation

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

Awesome Lists containing this project

README

        

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

## Usage
```bash
# Install globally
$ npm install -g rewrite-vercel

# Then run this at the root of your project
$ rewrite-vercel
```

```bash
# 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.

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

## License
This package is licensed under the MIT License.