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

Add vercel support - update to nextjs 12 #82

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Toumash
Copy link

@Toumash Toumash commented Mar 12, 2022

Adds vercel support.

Current state
This app wont deploy to vercel.com
Desired state
This app will easily deploy to vercel.com

The problem
The problem was probably caused by vercel not supporting older versions of nextjs - im no sure.
Whatever, the build was not passing anyway, and after my changes - it does pass.

Error from vercel deployment

Export successful. Files written to /vercel/path0/out
--
21:14:52.682 | Done in 37.26s.
21:14:52.693 | Error: The file "/vercel/path0/.next/routes-manifest.json" couldn't be found. This is normally caused by a misconfiguration in your project.
21:14:52.693 | Please check the following, and reach out to support if you cannot resolve the problem:
21:14:52.693 | 1. If present, be sure your `build` script in "package.json" calls `next build`.  2. Navigate to your project's settings in the Vercel dashboard, and verify that the "Build Command" is not overridden, or that it calls `next build`.  3. Navigate to your project's settings in the Vercel dashboard, and verify that the "Output Directory" is not overridden. Note that `next export` does **not** require you change this setting, even if you customize the `next export` output directory. Learn More: https://err.sh/vercel/vercel/now-next-routes-manifest

@Toumash Toumash changed the title Upgrade to nextjs12 Add vercel support - update to nextjs 12 Mar 12, 2022
@Toumash
Copy link
Author

Toumash commented Mar 12, 2022

The netlify build is failling, because it runs on older version of node

error [email protected]: The engine "node" is incompatible with this module. Expected version ">=12.22.0". Got "12.18.0"

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

Successfully merging this pull request may close these issues.

1 participant