Closed megaconfidence closed 1 month ago
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 next.config
file. I have posted the bare minimum code with defaults below
/** @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 preview:workers
, I get the following error in the browser:
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 It will be merged on the feedback is adressed
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