Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/johurul-haque/rewrite-vercel
- Owner: johurul-haque
- Created: 2023-05-01T12:21:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-26T12:17:48.000Z (7 months ago)
- Last Synced: 2024-04-27T12:45:11.121Z (7 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/rewrite-vercel
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.