61b68730f8
This moves the custom-routes configs outside of the experimental section to prepare them for being made stable Fixes: https://github.com/vercel/next.js/issues/14184
16 lines
390 B
JavaScript
16 lines
390 B
JavaScript
module.exports = {
|
|
async rewrites() {
|
|
return [
|
|
// we need to define a no-op rewrite to trigger checking
|
|
// all pages/static files before we attempt proxying
|
|
{
|
|
source: '/:path*',
|
|
destination: '/:path*',
|
|
},
|
|
{
|
|
source: '/:path*',
|
|
destination: `https://custom-routes-proxying-endpoint.vercel.app/:path*`,
|
|
},
|
|
]
|
|
},
|
|
}
|