Right now I’m trying to have my redirects handled by Contentful, the applications builds on install and this creates, and writes to a _redirects
file. That said, even upon successful compiling and correct console printing of the expected redirects, it’s not recognized.
The deploy view just reads back that 0 redirects found
and - as expected but not desired - the redirects definitely do not work.
When I type out the contents (or prebuild) to make the _redirects
file get pushed into version control, it works as expected.
From what I’m seeing it’s not possible to change the redirects file dynamically and is captured by Netlify immediately.
Just curious to know at what point the redirects should be built (if possible) at deploy-time.
The project is to make a white-label, dead-simple URL shortening tool and you can template clone from GitHub, add your Contentful API data to Netlify Deploy variables, and then edit. So it’s not idea to have to build then push to version control, and avoiding a layer of either data reading/writing past the existing Netlify systems is preferred.
Any ideas, or general input is greatly appreciated!