Open dharmendrasha opened 2 weeks ago
I had the same issue, but once I updated the Next build to build the app with the standalone mode, the deployment started working for me.
Here are the steps that you can do.
next.config.js
const nextConfig = {
output: "standalone"
};
package.json
"scripts": {
"build": "next build && cp -r .next/static .next/standalone/.next/ && cp -r public .next/standalone/"
}
azure-pipeline.yml
app_location: "/" # App source code path
api_location: "" # Api source code path - optional
output_location: "" # Built app content directory - optional
app_build_command: "npm run build"
api_build_command: "rm -rf ./node_modules/@next/swc-* && rm -rf ./.next/cache"
First of all thanks man for this great tip this worked like a charm
Never had an issue before this week, today it decided to start timing out on every attempt, but your fix resolved it @joechoi-git
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.
To Reproduce Steps to reproduce the behavior:
Trigger build by restarting the following Github Actions job: https://github.com/dexie/dexie-cloud/actions/runs/8377209871/job/22938762204 (I can provide access to whom may look into this) See error "Deployment Failure Reason: Web app warm up timed out. Please try again later." after having being stuck in "Status: InProgress." for 10 minutes. Compare it with the last successful job https://github.com/dexie/dexie-cloud/actions/runs/7733486859/job/21085673246 that is based on the exact same commit. Github workflow file (.github/workflows/azure-static-web-apps-proud-meadow-0514cdf10.yml):
I am facing the same issue as here #1440
re opening it because I am facing this a lot for my app