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

Fix Cloudflare Pages build error. #113

Closed
wants to merge 2 commits into from
Closed

Conversation

kalashnikov
Copy link

Hi,

I am trying to deploy it on Cloudflare Pages and I got build error since yesterday.
I got below error message

The following routes were not configured to run with the Edge Runtime:
    - /_not-found

And I found below page might be related and it does fix the error.
https://nextjs.org/docs/app/api-reference/file-conventions/not-found

I am not next.js expert - just tried to deploy it on Cloudflare Pages for use.
Not sure it is correct way to solve it.

Fix deploy error in Cloudflare Pages.
Copy link

vercel bot commented May 5, 2024

@kalashnikov is attempting to deploy a commit to the morphic Team on Vercel.

A member of the Team first needs to authorize it.

@miurla
Copy link
Owner

miurla commented May 6, 2024

@kalashnikov
Thank you for the PR. Since the error is resolved, it seems like a good workaround.
However, not-found.tsx is supposed to be prepared only when a custom page is needed, so it shouldn't normally be necessary. No error occurs with Vercel.
Further investigation is needed to determine if this change is necessary. Similar reports have also been made.
cloudflare/next-on-pages#413 (comment)

Therefore, I have created an issue and referred to this PR. #114
Please do not merge this PR, but close it.

@kalashnikov
Copy link
Author

Got it. Thanks for the feedback. I will close it.

@kalashnikov kalashnikov closed this May 6, 2024
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.

2 participants