Skip to content

Instantly share code, notes, and snippets.

@juanbrujo
Created September 28, 2020 14:06
Show Gist options
  • Select an option

  • Save juanbrujo/ed8f6c19c5f16c94ce5440535730ee62 to your computer and use it in GitHub Desktop.

Select an option

Save juanbrujo/ed8f6c19c5f16c94ce5440535730ee62 to your computer and use it in GitHub Desktop.
Netlify configuration for routes in a SPA
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
@catsofmath
Copy link
Copy Markdown

@frederikheld super late reply and not sure if this'll help... I got it to work by writing

# Redirects from what the browser requests to what we serve
/*  /index.html

into _redirect in the published directory

@RylanMonahan
Copy link
Copy Markdown

Reading this SPA routing issue makes me feel like a poor bunny, lost in tangled asset paths, hoping for clarity, kind guidance, and a soft path forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment