i try to reload any page but getting 404 error and properly work in localhost
vercel link : https://metronic-react-v8-2-5-demo3.vercel.app
version : metronic-react-v8-2-5-demo3
Hi,
Thank you for reaching out to us.
It seems like you didn't change the base path in the Vite config. 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.
Also, in official docs you can find detailed instructions on deploying React app to Vercel:
https://vitejs.dev/guide/static-deploy#vercel
Regards,
Lauris Stepanovs,
Keenthemes Support Team