Make sure your web server rewrites all requests to '/' index.html
since react is a SPA (single page application) and we're using client-side routing to make multi pages available
vercel deployment is supported
// package.json scripts:
yarn vercel dev //vercel development serverless in local
yarn vercel //preview deploy
yarn vercel --prod //production deployapp.get('/*', function (req, res) {
res.sendFile(path.join(__dirname, 'dist', 'index.html'));
});// .htaccess
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [QSA,L]http-server -o --proxy http://localhost:8080?// package.json
"homepage": "https://website.com",create this file at src: _redirects /* /index.html 200
... @todo
... @todo