My project is working locally fine, but when i "npm run build" and try to open dist/index.html with live server nothing rendering when i move .js and .css files manually to root and use them index.html it is partially work but assets and medias are not rendering.
i am using metronic_react_v8.2.6.
index.html:22 Refused to apply style from 'http://127.0.0.1:5500/index-9602e573.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
Hi,
Sorry for the late reply.
Did you follow the build instructions on the official docs?
https://vitejs.dev/guide/build
By default, our previews are served under /metronic8/react/demo1/
, when you deploy Metronic on your server, you should update base property up to the path on your server in file vite.config.js. If you do not have a nested folder on your server then you can set base path to /
.
You can read more about this property in the official documentation: https://vitejs.dev/guide/build#public-base-path.
Regards,
Lauris Stepanovs,
Keenthemes Support Team