Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join

server action without declaring `export const runtime = 'edge';`

is there a way to make the server action be served on a separate URL & not in the page it's used in?

using just `next dev` not that i know of

using just next dev not that i know of but may be possible, im a huge donkey so hope im not leading you down the wrong direction, even now im wondering if i actually did create the KV in wrangler, or if it didn't just automatically do that, you probably already saw this but the internal github doc: ``` https://github.com/cloudflare/next-on-pages/blob/main/internal-packages/next-dev/README.md...

Anyone get D1 working with local

Anyone get D1 working with local development? I've tried every blog post and looked through here and can't seem to figure it out. I would be happy with developing against the remote DB or local DB. Every time I'm in dev mode it seems to be connecting to an empty Sqlite DB that doesn't have any tables in it based on the errors. I've tried putting my remote DB name/ID in the bindings or a local one and i get the same results. ```setupDevBindings({ persist: true, bindings: {...

Honeycomb · Cloudflare Pages docs

Hey community đź‘‹ I have question about observability. Has anybody been able to successfully use Honeycomb plugin (https://developers.cloudflare.com/pages/functions/plugins/honeycomb/) with next-on-pages?...

That flag can only be set with Wrangler

That flag can only be set with Wrangler if you create a project with wrangler afaik, otherwise it needs to be set in the dashboard

Oh sorry yes, if you want to use pages:

Oh sorry yes, if you want to use pages:dev, you would need to run pages:build first. It builds the Next.js app via vercel's cli actually, instead of just next build, and then takes the output and transforms it, but yes, it does a normal build under the hood

Access to CF on Pages using Next.js

Does anyone know how to access the cf object in the headers when using next.js on CF? I'm trying to access botManagement and it's not set on the request.cf, nor it it part of the headers....

guys do cloudflare support dynamic page

guys do cloudflare support dynamic page like "app/profile/[id]"? Here is the code for that dynamic page's page.tsx ``` export const runtime = 'edge'; ...

**Need help using KV with next-on-pages

Need help using KV with next-on-pages I've spend several hours trying to access KV in dev environment in my Next.js Project using next-on-pages. Setup:...

Has anyone used @vercel/og with next-on-

Has anyone used @vercel/og with next-on-pages? I'm trying to use its functionality but every time I add it, the function size blows up and it throws an error during deployment. (Left side is with @vercel/og, right side without)....
No description

Hey, I'm having some issues with trying

Hey, I'm having some issues with trying to have some static and some edge-rendered routes, next-on-pages will crash the build if I don't have an runtime = "edge" in every route I create for whatever reason

thanks so much, please mention me in the

thanks so much, please mention me in the message so I'll get notified and don't risk missing it 🙂 🙏

I mean, that's pretty unusual, so

I mean, that's pretty unusual, so without a reproduction it would be hard to tell why. There is documentation in the next-on-pages repo that has an example of a very basic API route

FIXED: monologue about a chunk not found errors

I'm getting chunk not found error's on some pages in the production environment specifically with custom domains.

Hi team I m getting a

Hi team! I'm getting a Failed: build exceeded memory limit and was terminated I have been moving some pages and components to work on the app dir instead on the pages dir. All our previous builds were running ok....

.

Has anyone encounter the issue before Am developing a project with Next + sanity after deployment i discovered that the all page slug is showing 404 pages , so i build on CLI and see that the page slug is not build Am also all my images are not showing expect the bg image...

Ah I d seen that but thought it was only

Ah I'd seen that but thought it was only related to the not-found file, they must have changed something in 13.5 because I can't see any way to build a project successfully now, with or without an error.tsx file that error happens.