The deployment issue happened because the index.html
file was missing from your dist
folder, which is necessary for the app to run. The SWA CLI didn't show a specific error, as it expects the build process to be complete with all necessary files in the output folder.
- Before deploying, ensure the
index.html
file is present in your build outputdist
folder. -
Rebuild
your app by running the build commandnpm run build
to generate all necessary files, including index.html. - Please
verify
thedist
folder to confirm thatindex.html
and other required files (likeJavaScript
andCSS
) are present before redeploying. - Once the files are confirmed,
redeploy
using the SWA CLI with the appropriate command.
swa deploy --env "Production" --app-location dist -n arka-360-test2 –verbose
Please accept as "Yes" if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.