I downloaded the zip file 'metronic_react_v8.2.5_demo1.zip' extracted then installed node_modules and run the npm run build command. It gives errors like
index-76c9c8ca.js:1
Failed to load resource: the server responded with a status of 404 (Not Found)
index-f03d7f69.css:1
Failed to load resource: the server responded with a status of 404 (Not Found)
splash-screen.css:1
Failed to load resource: the server responded with a status of 404 (Not Found)
index-f03d7f69.css:1
Failed to load resource: the server responded with a status of 404 (Not Found)
Errors in internet browsers's console. I run basic http-server
Errors gone when doing hard-refresh
Hi,
By default, our previews are served under /metronic8/vue/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