I have a problem, I have already tried to publish the code generated by yarn build, I have already placed the site on firebase hosting and also on vercel, and neither of them loads the site. Only locally is it working using yarn dev.
I also followed the VITE step by step to deploy, but it still isn't working, the loading screen appears quickly and then doesn't show anything else.
https://vitejs.dev/guide/static-deploy.html
metronic react 8.2.4 demo1
node v20.5.0
Hi Bruno Machado,
Thank you for reaching out to us.
Please note that by default, our previews are served under /metronic8/rect/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
Hi Lauris Stepanovs, thanks for the quick response, yes I had already made that change in vite.config, but it still doesn't work.
Hi Bruno Machado,
Do you have any errors in your browser console?
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Apparently no error, but in the network tab, it keeps loading something that never returns. Follow the production link below.
https://vite-six-xi-71.vercel.app/
Hi Bruno Machado,
It's difficult to determine the exact cause of this problem without debugging.
The Vite documentation provides detailed instructions on deploying a Vite application to Firebase. Please ensure you have followed these steps correctly: Vite Deployment Guide for Firebase.
Additionally, I suggest testing your build locally before deployment. You can run the production build locally with the command npm run preview.
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Hi Lauris Stepanovs, thank you very much for your help. I appreciate it.