rsnext/examples/custom-routes-proxying/next.config.js
JJ Kasper bfd36bd227
Update custom-routes-proxying to use fallback rewrites (#23610)
This updates to use the new `fallback` rewrites support instead of the previous no-op rewrite workaround. 


## Documentation / Examples

- [x] Make sure the linting passes
2021-04-01 16:48:49 +00:00

12 lines
227 B
JavaScript

module.exports = {
async rewrites() {
return {
fallback: [
{
source: '/:path*',
destination: `https://custom-routes-proxying-endpoint.vercel.app/:path*`,
},
],
}
},
}