You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I use the Route Group inside my nextjs 13 project, the build script will throw an error
In my case, i was trying to create a Route Group called dashboard( xxxx/app/(dashboard)/xxxx ), and when trying to build it, i get this
19:01:03.370 | ⚡️
19:01:03.370 | ⚡️
19:01:03.370 | ⚡️ Completed 'npx vercel build'.
19:01:03.370 | ⚡️
19:01:04.215 | ⚡️ ERROR: Failed to produce a Cloudflare Pages build from the project.
19:01:04.215 | ⚡️ The following functions were not configured to run with the Edge Runtime:
19:01:04.215 | ⚡️
19:01:04.215 | ⚡️ - dashboard.rsc
19:01:04.215 | ⚡️ - dashboard
19:01:04.216 | ⚡️
19:01:04.216 | ⚡️ If this is a Next.js project:
19:01:04.216 | ⚡️
19:01:04.216 | ⚡️ - you can read more about configuring Edge API Routes here (https://nextjs.org/docs/api-routes/edge-api-routes),
19:01:04.216 | ⚡️
19:01:04.216 | ⚡️ - you can try enabling the Edge Runtime for a specific page by exporting the following from your page:
19:01:04.216 | ⚡️
19:01:04.217 | ⚡️ export const config = { runtime: 'experimental-edge' };
19:01:04.217 | ⚡️
19:01:04.217 | ⚡️ - or you can try enabling the Edge Runtime for all pages in your project by adding the following to your 'next.config.js' file:
19:01:04.217 | ⚡️
19:01:04.217 | ⚡️ const nextConfig = { experimental: { runtime: 'experimental-edge'} };
19:01:04.217 | ⚡️
19:01:04.217 | ⚡️ You can read more about the Edge Runtime here: https://nextjs.org/docs/advanced-features/react-18/switchable-runtime
The text was updated successfully, but these errors were encountered:
If I use the Route Group inside my nextjs 13 project, the build script will throw an error
In my case, i was trying to create a Route Group called dashboard( xxxx/app/(dashboard)/xxxx ), and when trying to build it, i get this
The text was updated successfully, but these errors were encountered: