-
Notifications
You must be signed in to change notification settings - Fork 57
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
deployment_environment: doesn't work #1551
Comments
I am experiencing the same issue with my project. |
I am experiencing the same result. This is blocking us from setting up a CORS policy for preview environments |
I managed to "solve" this issue. When a deployment is triggered by a pull request, the deployment environment will be your pr number. This behaviour seems to override the 'deployment_environment' option in the workflow. To deploy to a named environment the workflow trigger must be 'push'. (might work for other triggers as well, I have only tried push) |
@sindrebakk1 thanks for this information. |
Describe the bug
I followed these link.
https://learn.microsoft.com/en-us/azure/static-web-apps/named-environments?tabs=github-actions
#787
This is the action
Expected behavior
I should have this URL
https://mango-desert-0545fe40f-development.eastus2.5.azurestaticapps.net
generated in the Azure Static Web App, but I have this onehttps://mango-desert-0545fe40f-78.eastus2.5.azurestaticapps.net/.auth/login/aad/callback
which it takes the PR's ID.The text was updated successfully, but these errors were encountered: