Hey I’m in the early stages of building a lightweight CMS that I’d like to host on Netlify. It’s a Vue.js SPA and I’m trying to determine the best way to configure redirects so I can include the “site ID” in each request without having to hit the API before pageload on each request. An idea I had was something like https://cms.com/*?site=1
would translate to something like https://custom-domain.com/:splat
. To illustrate further:
https://cms.com/about-us/our-founder/?site=1
could lead to
https://custom-domain.com/about-us/our-founder
and this way when I make requests to my API, I can merge { site : 1 }
into all the requests so my API can return scoped data results.
I’ve read over the redirect docs/query params – as well as similar community topics – and still don’t know my best course of action with Netlify. Thanks in advance!