EXPO 49 Publish to Web 404 error when hosting

Please provide the following:

  1. SDK Version: 49
  2. Platforms(Android/iOS/web/all): Web
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

I am trying to publish my app for web hosting using Microsoft IIS/ AWS Amplify using npx expo export --platform web
To test it from locally, i used npx serve dist. I see 404 error not sure why. The same error happens when i try to host with Microsoft IIS and AWS Amplify. Please help to fix this.

My Logs

HTTP 8/20/2023 8:06:20 AM ::1 GET /
HTTP 8/20/2023 8:06:20 AM ::1 Returned 304 in 19 ms
HTTP 8/20/2023 8:06:20 AM ::1 GET /_expo/static/js/web/node_modules%5Cexpo-router%5Centry-0b038734cceb6d6f0064b4eb15b884e6.js
HTTP 8/20/2023 8:06:20 AM ::1 Returned 404 in 6 ms

I corrected the path of the JS file, Somehow Microsoft IIS is still not rendering js file due to some reason. Please someone can help me to solve this.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.