score:21

I had the same problem on the server, run npm run build, create a folder with the compiled project, inside build create the .htaccess file with:

RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]
RewriteRule ^ ./index.html

Related Query

More Query from same tag