diff --git a/examples/custom-routes-proxying/next.config.js b/examples/custom-routes-proxying/next.config.js index 34fbf87d7a25d..0ed1bef112c66 100644 --- a/examples/custom-routes-proxying/next.config.js +++ b/examples/custom-routes-proxying/next.config.js @@ -1,16 +1,12 @@ 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*`, - }, - ] + return { + fallback: [ + { + source: '/:path*', + destination: `https://custom-routes-proxying-endpoint.vercel.app/:path*`, + }, + ], + } }, }