Hi,
I have a react site which i want to build and deploy using bitbucket pipelines. my pipeline runs and deploys the content of the dist folder in what seems to be correct manner. the correct files appear on my azure storage. however when i try opening the site I get the following 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 am using yarn and vite.
image: node:20.11.1 #atlassian/default-image:3
definitions:
caches:
yarn: node_modules
pipelines:
branches:
master:
- step:
name: 'Build'
caches:
- yarn
script:
- echo "Your build and test goes here..."
- yarn
- yarn build
artifacts:
- dist/**