Site name: https://checkoutnavneet.netlify.app
Console error: Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “application/octet-stream”. Strict MIME type checking is enforced for module scripts per HTML spec
I read a similar topic and it asked to create the build and run it locally and see if it works and the dev and build productions might work different, so I tried that and the build is working as expected.
I am not sure where I will find the build response for you, although this is what I have. If there is something I am missing please let me know
@whythereisneed My guess is that you aren’t running your build and are accidentally deploying your source files.
See how the src
is pointing at /src/main.tsx
:
Another giveaway is that your README.md is accessible.
You should configure your Build settings correctly, as it’s not done automatically.
You will need to set your Build command and your Publish directory.
So i wanted to add this repo and if there are any changes it should reflect live too.
So then I might have to push the new builds everytime i update the code right? and will that automatically update here too?
I’m not sure what you’re asking.
If you want the site to change, then you would change the code.
If your Netlify site instance is hooked to the repository then changes to the repository would cause it to build and deploy again.
What commands Netlify executes and what folder gets deployed are set in your Build settings.
1 Like