© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•2y ago•
1 reply
Dario

this is what we've got 😓 : https://

this is what we've got 😓 : https://github.com/cloudflare/next-on-pages/tree/main/internal-packages/next-dev#next-on-pages-next-dev

it briefly mentions DOs but that's acutally not too too helpful I'm afraid.... I'll add a note here: https://developers.cloudflare.com/workers/wrangler/api/#getplatformproxy

to better explain how to access DOs using
getPlatformProxy
getPlatformProxy
(and we do defer to that page in our docs)

Anyways to use DOs you need to define them in your wrangler.toml file in this way:
[[durable_objects.bindings]]
name = "MY_DO"
script_name = "do-worker"
class_name = "DurableObjectClass"
[[durable_objects.bindings]]
name = "MY_DO"
script_name = "do-worker"
class_name = "DurableObjectClass"


and then before you run your next-on-pages app, in a separate terminal you need to spin up your "do-worker" worker
(you can't define a DO in your next-on-pages app but use the DO from a different worker)

I hope this helps, please let me know if it does 🙂
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Have we got a solution yet for static
Cloudflare DevelopersCDCloudflare Developers / next-on-pages
2y ago
Update: I think I've got the Next.js app
Cloudflare DevelopersCDCloudflare Developers / next-on-pages
2y ago
We have no knowledge of what happens
Cloudflare DevelopersCDCloudflare Developers / next-on-pages
2y ago
https://fineshop.app/api/image?url=https
Cloudflare DevelopersCDCloudflare Developers / next-on-pages
2y ago