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.htmlfile is present in your build outputdistfolder. -
Rebuildyour app by running the build commandnpm run buildto generate all necessary files, including index.html. - Please
verifythedistfolder to confirm thatindex.htmland other required files (likeJavaScriptandCSS) are present before redeploying. - Once the files are confirmed,
redeployusing 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.