Cloudflare pages ignoring edge runtime export

Cloudflare asked me to export const runtime = "edge" in order to run my api routes, and after adding them it still won't build and gives the same errors:
01:52:20.142 ⚡️ ERROR: Failed to produce a Cloudflare Pages build from the project.
01:52:20.142 ⚡️
01:52:20.142 ⚡️ The following routes were not configured to run with the Edge Runtime:
01:52:20.143 ⚡️ - /_not-found
01:52:20.143 ⚡️ - /index
01:52:20.143 ⚡️ - /login
01:52:20.143 ⚡️ - /settings
01:52:20.143 ⚡️ - /users
01:52:20.143 ⚡️ - /websites/[id]
01:52:20.143 ⚡️ - /websites
01:52:20.144 ⚡️
01:52:20.144 ⚡️ Please make sure that all your non-static routes export the following edge runtime route segment config:
01:52:20.144 ⚡️ export const runtime = 'edge';
01:52:20.142 ⚡️ ERROR: Failed to produce a Cloudflare Pages build from the project.
01:52:20.142 ⚡️
01:52:20.142 ⚡️ The following routes were not configured to run with the Edge Runtime:
01:52:20.143 ⚡️ - /_not-found
01:52:20.143 ⚡️ - /index
01:52:20.143 ⚡️ - /login
01:52:20.143 ⚡️ - /settings
01:52:20.143 ⚡️ - /users
01:52:20.143 ⚡️ - /websites/[id]
01:52:20.143 ⚡️ - /websites
01:52:20.144 ⚡️
01:52:20.144 ⚡️ Please make sure that all your non-static routes export the following edge runtime route segment config:
01:52:20.144 ⚡️ export const runtime = 'edge';
1 Reply
Chaika
Chaika4w ago
If you're using next on pages, would ask in #next-on-pages
Want results from more Discord servers?
Add your server