adrianhajdin / project_syncfusion_dashboard

This is a code repository for the corresponding YouTube video. In this tutorial we are going to build and deploy a an admin dashboard app using React.js and Syncfusion
https://jsmastery.pro
GNU Affero General Public License v3.0
3.04k stars 1.05k forks source link

_redirect for netlify #32

Open Priyanshu85 opened 1 year ago

Priyanshu85 commented 1 year ago

When reloading on netlify it shows Page not found. This can be solved using redirects file in the public folder

khalidfasely commented 1 year ago

What the content of the file should look like:

I tried this, but it isn't working /ecommerce https://lek-dashboard.netlify.app/ecommerce 301

Priyanshu85 commented 1 year ago

/* /index.html 200

Make a file named _redirects in the public folder and add the above content in it. @khalidfasely

khalidfasely commented 1 year ago

Thank you, I tried this, and it worked for me: create a netlify.toml on the public folder with this content

[[redirects]]
  from = "/*"
  to = "/index.html"
  status = 200

then run build @Priyanshu85