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
When debugging and previewing locally with npm run pages:build && wrangler pages dev. I get the following errors:
✘ [ERROR] Error: An error occurred while evaluating the target edge function (__next-on-pages-dist__/functions/middleware.func.js)
at E
(file:///Users/alexanderchiu/Projects/Personal/cf-pages-next-app/.vercel/output/static/_worker.js/index.js:40:15383)
at async M.runRouteMiddleware
(file:///Users/alexanderchiu/Projects/Personal/cf-pages-next-app/.vercel/output/static/_worker.js/index.js:40:21764)
at async M.checkRoute
(file:///Users/alexanderchiu/Projects/Personal/cf-pages-next-app/.vercel/output/static/_worker.js/index.js:40:23859)
at async M.checkPhase
(file:///Users/alexanderchiu/Projects/Personal/cf-pages-next-app/.vercel/output/static/_worker.js/index.js:40:24705)
at async M.run
(file:///Users/alexanderchiu/Projects/Personal/cf-pages-next-app/.vercel/output/static/_worker.js/index.js:40:25374)
at async ee
(file:///Users/alexanderchiu/Projects/Personal/cf-pages-next-app/.vercel/output/static/_worker.js/index.js:40:25654)
at async Y
(file:///Users/alexanderchiu/Projects/Personal/cf-pages-next-app/.vercel/output/static/_worker.js/index.js:40:25583)
at async jsonError
(file:///Users/alexanderchiu/Projects/Personal/cf-pages-next-app/node_modules/wrangler/templates/middleware/middleware-miniflare3-json-error.ts:22:10)
at async drainBody
(file:///Users/alexanderchiu/Projects/Personal/cf-pages-next-app/node_modules/wrangler/templates/middleware/middleware-ensure-req-body-drained.ts:5:10)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Has any had success running Next.js + Cloudflare pages with Clerk Auth ?
I have a barebones repo demonstrating the error I'm encountering. The project is all scaffolded with the Cloudflares C3 CLI
https://github.com/chiubaca/fullstack-cf-pages-next-app
Live demo of the error here:
https://fullstack-next-cloudflare.pages.dev/
Here is the full functions stack trace when hitting the site:
When debugging and previewing locally with
npm run pages:build && wrangler pages dev
. I get the following errors:Beta Was this translation helpful? Give feedback.
All reactions