比较小白, 第一次用这个平台. 部署一个 react+vite 的项目, github pages 部署没问题可以访问, 但是在帽子云上虽然部署成功但是访问很多资源出现问题: 截图如下:
这些资源都是我配置 vite 打包完的 chunks, 我不太理解为什么会出现类似这样的错误, 都是 js 文件正常应该能被加载才对
Failed to load module script: Expected a JavaScript-or-Wasm module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
想知道是否有哪里我需要配置一下? 多谢