Skip to content

Custom domain UI functionality routes not working #354

Answered by Benehiko
pedrodgoes asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @pedrodgoes

This is a netlify problem and not an Ory problem. You need to add rewrite rules inside your netlify config.
https://docs.netlify.com/configure-builds/javascript-spas/#build-configuration-for-javascript-spas

Since this application is a SPA it is served from a singular index.html file. When routing to another path on netlify it tries to serve a file under that path, e.g. /recovery -> recovery/index.html which isn't possible. Rewrites allows any URL to be redirect to the index.html / -> /index.html

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vinckr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants