vue-storefront-1
vue-storefront-1 copied to clipboard
Proxy routes feature
What is the motivation for adding / enhancing this feature?
One of the cool potential cases for using VSF is implementing just some pages on VSF and leep the rest on as is. It's partially doable using external checkout however - it would be cool to have VSF asa front facade and then decide which pages are proxied (from the backend system) using vue-router!
I saw something similar in react-storefront. proxyUpstream handler is doing something exactly like this.
What are the acceptance criteria
- [ ] you can define the routes that are proxied (in the SSR mode) to the backend system. Something like:
const ProxyUpstream = (url) => {
return { render (c) { return fetch('....') }},
}
{ name: 'fallback', path: '/about-us', component: ProxyUpstream('http://original-url'), meta: { layout: 'minimal' } },
Can you complete this feature request by yourself?
- [ ] YES
- [ ] NO