Define rewrites in static.json file?

Hi there,

Is it possible to define rewrites rules for a static site in code, through a public static.json file for instance ?

I’ve managed to achieve that through the dashboard (and it works) but would prefer to rely only on code, for instance :

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

Thanks for your help !

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.