Closed dfahlander closed 3 months ago
having the same issue :(
My solution was to publish my next project on an azure webapp instead. It was some cumbersome work now it's live in that way instead. This time without CI but I will add that later. At least there aren't a as much of magic going on so it feels safer also. I will go deleting the static web app and the workflow.
Same issue here!
My solution was to publish my next project on an azure webapp instead. It was some cumbersome work now it's live in that way instead. This time without CI but I will add that later. At least there aren't a as much of magic going on so it feels safer also. I will go deleting the static web app and the workflow.
will try if needed. i just re-ran the job and it passed second time
Same issue here
Same issue here, however randomly it will work.
However even if the deployment completes successfully, the static parts of the app work, however the interactivity doesn't & I get a strange redirect to localhost:8080 occurring.
I've deployed successfully with two nextjs sites; both into US-West1, one v12 with pages/api functions, the other a v14 no API routes and both are unusable after the successful deployments.
At this point and seeing the posts above; I don't believe Microsoft can advertise full NextJS support; it is certainly not turn key, and the documentation is woeful.
facing same issue.
Same here :(
I was actually happy that I went into this problem because it forced me out from publishing my nextjs app using static website. The results of migrating from static to web app:
So to anyone reading this, my advice is: give normal web apps a try, no matter if you have this issue or not.
@dfahlander I will move in that direction. Thanks for the advice!
I would absolutely love to but I can’t seem to find a good set of instructions to allow SSR nextjs sites to work properly. Did you use any particular resources?On 5 Jun 2024, at 23:45, David Fahlander @.***> wrote: I was actually happy that I went into this problem because it forced me out from publishing my nextjs app using static website. The results of migrating from static to web app:
Costs decreased a lot Speed improved significantly Less dependant on the pipeline yml magic
So to anyone reading this, my advice is: give normal web apps a try, no matter if you have this issue or not.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>
I would absolutely love to but I can’t seem to find a good set of instructions to allow SSR nextjs sites to work properly. Did you use any particular resources?On 5 Jun 2024, at 23:45, David Fahlander @.> wrote: I was actually happy that I went into this problem because it forced me out from publishing my nextjs app using static website. The results of migrating from static to web app: Costs decreased a lot Speed improved significantly Less dependant on the pipeline yml magic So to anyone reading this, my advice is: give normal web apps a try, no matter if you have this issue or not. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.>
I don't recall all I had to do, but there was a couple of tricks nescessary to avoid the functions becoming too heavy - found some hacks somewhere to add to the github actions yml file. Until it stopped working... :)
The reason I went for static site in the first place was that whenever I Googled about how to publish Next.js app to Azure, I got into some docs pages or blog posts about doing it as a static web site. Then I got stuck in it. So glad I'm using a normal web app now instead.
Same issue here - very sporadic, deployment via github actions sometimes works, sometimes doesn't
same issue here
For me the error came when introducing a middleware to secure my whole application. This middleware did not have an exception for the .swa/health probe that Girhub actions probabbly use to check the up and running app. This caused the timeout. Adding |\.swa/health| resolved the issue for me. Check this issue for more infos: https://github.com/Azure/static-web-apps/issues/1404
Thanks Saendu, that worked
Describe the bug
I have a static nextjs app that used to work for 6-7 weeks ago but have stopped working even for the smallest change. I even reverted the branch to the exact commit that was successfully built last time and it still fails with "Deployment Failure Reason: Web app warm up timed out. Please try again later." after having being stuck in "Status: InProgress." for 10 minutes.
Last successful build: https://github.com/dexie/dexie-cloud/actions/runs/7733486859/job/21085673246 Last failing build (same git commit as the successful build after i reverted to that commit in trying to isolate the culprit): https://github.com/dexie/dexie-cloud/actions/runs/8377209871/job/22938762204
The github repo is private (https://github.com/dexie/dexie-cloud) but I can add access to anyone that can help me troubleshoot this.
To Reproduce Steps to reproduce the behavior:
Github workflow file (.github/workflows/azure-static-web-apps-proud-meadow-0514cdf10.yml):
Expected behavior I expect the build to complete and publish the new version of the app.
Screenshots
Device info (if applicable):
N/A
Additional context
-