Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Feature Request: Get worker domain/url at build time #7547

Open
theoephraim opened this issue Dec 13, 2024 · 0 comments
Open

🚀 Feature Request: Get worker domain/url at build time #7547

theoephraim opened this issue Dec 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@theoephraim
Copy link

Describe the solution

Similar to #2410, when we are building a worker, sometimes we want to know the URL of where it will be deployed while building it. For production cases the main URL will be known, and likely aliased to a non workers.dev URL, but for previews, there's no way to know the "version prefix" until after the version is created. Adding different environments into the mix further complicates things. As does supporting local wrangler dev url.

Possible solutions:

  • allow calculating the version prefix before doing a build
  • allow creating a version without uploading any files, just to get the new prefix, and then build and upload the files
  • allow manually specifying a version prefix rather than using a calculated one

Figuring this out sooner rather than later would be good, considering what is happening with the workers builds git integration and automatically doing branch/PR builds. We'll have same issues there and even more cases to deal with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Untriaged
Development

No branches or pull requests

1 participant