2020-06-22 02:44:04 +02:00
|
|
|
module.exports = {
|
2020-06-27 11:18:18 +02:00
|
|
|
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*`,
|
|
|
|
},
|
|
|
|
]
|
2020-06-22 02:44:04 +02:00
|
|
|
},
|
|
|
|
}
|