e32a4c857b
Converted `custom-routes-proxying` example to TypeScript to match Contribution docs. ## Documentation / Examples - [X] Make sure the linting passes by running `pnpm lint` - [X] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
19 lines
318 B
JavaScript
19 lines
318 B
JavaScript
// @ts-check
|
|
|
|
/**
|
|
* @type {import('next').NextConfig}
|
|
**/
|
|
const nextConfig = {
|
|
async rewrites() {
|
|
return {
|
|
fallback: [
|
|
{
|
|
source: '/:path*',
|
|
destination: `https://custom-routes-proxying-endpoint.vercel.app/:path*`,
|
|
},
|
|
],
|
|
}
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig
|