Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A new vercel.json should be created if it doesn't exist #3

Closed
fr3fou opened this issue Oct 30, 2020 · 1 comment
Closed

A new vercel.json should be created if it doesn't exist #3

fr3fou opened this issue Oct 30, 2020 · 1 comment
Labels

Comments

@fr3fou
Copy link

fr3fou commented Oct 30, 2020

Currently, running the script on an empty directory without a vercel.json or now.json, will cause node to crash:
image
The script also crashes if either the the file is empty or the redirects array doesn't exist.

When the file is empty
image

After populating the file with {}
image

A solution to this would be to create that file automatically or have a command for "initing" the project

$ vercel-redirects init
codfish added a commit that referenced this issue Aug 12, 2022
BREAKING CHANGE: Require node >= 14.16 & ESM support
- Require Node.js 14.16 or greater
- This package is now pure ESM. Please [read this](codfi.sh/esm).

Closes #3
@github-actions
Copy link

🎉 This issue has been resolved in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant