serve icon indicating copy to clipboard operation
serve copied to clipboard

Set rewrites config without serve.json for SPA?

Open n2ptune opened this issue 3 years ago • 1 comments

Hi.

Do I have to write a file to apply the rewrite rule?

Can't this function be applied from CLI? according to documentation, the following settings are required to test the SPA application.

{
  "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
}

Is this function not available in CLI as below?

serve -p 9982 --spa dist

Am I missing something from documentation? or is it worth considering?

n2ptune avatar Jul 27 '21 03:07 n2ptune