Azure / static-web-apps

Azure Static Web Apps. For bugs and feature requests, please create an issue in this repo. For community discussions, latest updates, kindly refer to the Discussions Tab. To know what's new in Static Web Apps, visit https://aka.ms/swa/ThisMonth
https://aka.ms/swa
MIT License
330 stars 56 forks source link

Azure Static Webapp Deployment fails while deploying #1002

Open jejanov opened 1 year ago

jejanov commented 1 year ago

I am trying to deploy a Nextjs app. The deployment is failing while polling for deployment. It appears to timeout.

build log

I'm attaching the log files here: logs_12.zip

What I'm challenged by is the lack of detail in the error. Any help is appreciated.

Thanks, Joel

vivekjilla commented 1 year ago

@jejanov Sorry for the inconvenience. We're working to improve this experience.

Meanwhile is it possible that your application is expecting some env variables/app settings to run? If so, can you please add them to your SWA app under the Configuration blade. More details on how to do this: https://learn.microsoft.com/en-us/azure/static-web-apps/application-settings#use-the-azure-portal and then try redeploying to see if it works. Thanks!

jejanov commented 1 year ago

Good morning. I have one env variable setup already. It all checks out as it should. Any other thoughts on how to troubleshoot this issue?

Thank you, Joel

On Nov 28, 2022, at 11:50 PM, Vivek Jilla @.***> wrote:

@jejanov https://github.com/jejanov Sorry for the inconvenience. We're working to improve this experience.

Meanwhile is it possible that your application is expecting some env variables/app settings to run? If so, can you please add them to your SWA app under the Configuration blade. More details on how to do this: https://learn.microsoft.com/en-us/azure/static-web-apps/application-settings#use-the-azure-portal and then try redeploying to see if it works. Thanks!

— Reply to this email directly, view it on GitHub https://github.com/Azure/static-web-apps/issues/1002#issuecomment-1330161797, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJBILIVXW2LCHDKRWDVDVPDWKWRTLANCNFSM6AAAAAASNZ4MDY. You are receiving this because you were mentioned.

jejanov commented 1 year ago

I wanted to add that it deploys fine the the Azure CLI swa

jejanov commented 1 year ago

I managed to get this to work. I wish I could say how but it isn’t clear to me. I believe it had to do with something in my package.json.

Thanks for the help.

On Nov 28, 2022, at 11:50 PM, Vivek Jilla @.***> wrote:

@jejanov https://github.com/jejanov Sorry for the inconvenience. We're working to improve this experience.

Meanwhile is it possible that your application is expecting some env variables/app settings to run? If so, can you please add them to your SWA app under the Configuration blade. More details on how to do this: https://learn.microsoft.com/en-us/azure/static-web-apps/application-settings#use-the-azure-portal and then try redeploying to see if it works. Thanks!

— Reply to this email directly, view it on GitHub https://github.com/Azure/static-web-apps/issues/1002#issuecomment-1330161797, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJBILIVXW2LCHDKRWDVDVPDWKWRTLANCNFSM6AAAAAASNZ4MDY. You are receiving this because you were mentioned.