rsnext/examples/custom-routes-proxying/next.config.js
Max Proske e32a4c857b
Convert custom-routes-proxying example to TypeScript (#38974)
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)
2022-07-25 11:02:00 +00:00

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