Hi David Matichuk,
To fix the issue, Lets follow these steps:
1.Since you're only using HTML, you don’t need a build step. But Azure still needs to know where your files are. Try this:
- Go to the Azure Static Web Apps deployment settings.
- Set the "App location" to
"/"
(the root folder where your HTML files are). - Set the "Output location" to
"/"
as well, since there is no separate build output. This should tell Azure to just use your raw HTML files without looking for a build process.
2.Even though you don’t need Node.js, Azure might still expect a package.json. If you keep getting errors, try adding a minimal one:
- Create a file called package.json in your project’s root folder.
- Add this content: { "scripts": {
"build": "echo 'No build needed'" }
} - Push the changes and redeploy.
3.Make sure you're not using a "Custom Build Command" (it should be blank). Ensure your repository structure is correct. Your HTML files should be directly in the repo, not buried in subfolders.
If you have any further assistant, do let me know, with few doubts in comment i have mentioned, to assist you better.
If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.