-
Notifications
You must be signed in to change notification settings - Fork 10
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
Error: Not in a Next.js app project #82
Comments
Hey @megaconfidence, You are getting the issue because the adapter only supports next projects which have the next.config file. If the adapter doesn't find it, will throw the error. So to fix your issue add the /** @type {import('next').NextConfig} */
const nextConfig = {};
export default nextConfig; I have raised a PR to add a detailed error going forward for other users. I hope this helps! cc @vicb |
@shashankboosi Thank you so much for your help! |
Thanks @shashankboosi. I've added the config file and local dev in Nodejs works. But when I try to build for Workerd with Here's a link to my project https://github.com/megaconfidence/next-blog-starter-worker |
@shashankboosi both improved the error message and also added the blog starter app, see #86 |
Hey @megaconfidence, As @vicb said, the PR mentioned should work and it is night time here. So will try to get the PR ready for merge tomorrow. Play around with the PR till then :) |
Thanks, everything seems to work as expected in the PR. Thanks for working on this |
I'm trying to deploy this Nextjs template on Workers using opennext but I get this error
https://vercel.com/templates/next.js/empathic-voice-interface-starter
https://vercel.com/templates/next.js/blog-starter-kit
The text was updated successfully, but these errors were encountered: