How to patch local Sandbox instance to return correct URLs

When a sandbox is created in the local development environment, it generates a 3000-random-sandbox.localhost URL (via a Durable Object). However, this isn’t a real URL since there’s no subdomain support or proxy running. Instead, Docker assigns static ports — for example, 39300. Now i could just replace the value manually, but if I start many sandboxes ports cannot scale. Why is durable object returning "random" urls, it should return whatever docker returns as exposed value?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?