rsnext/docs
Abir Taheer 0549a46632
Update TypeScript API Route example (#44517)
The existing example causes issues with eslint's `eslintimport/no-anonymous-default-export` rule that come pre-enabled with `create-next-app`.

Added a name to the api handler function before setting it as the default export.



## Documentation / Examples

- [x] Make sure the linting passes by running `pnpm build && pnpm lint`
- [x] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)


Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
2023-01-03 20:03:44 +00:00
..
advanced-features Add module transpilation docs (#44518) 2023-01-03 09:29:24 +00:00
api-reference Update next/head docs. (#44454) 2022-12-30 20:18:06 +00:00
api-routes feat: enables 'edge' as a possible runtime for API routes (#44045) 2022-12-15 10:08:03 +01:00
basic-features Update TypeScript API Route example (#44517) 2023-01-03 20:03:44 +00:00
guides Update building-form sample code (#38437) 2022-07-08 03:18:59 +00:00
migrating docs(migrating): fix broken react-router link (#43843) 2022-12-08 10:28:36 -08:00
routing fixed missing <Link /> keyword (#42422) 2022-11-03 11:07:01 -07:00
accessibility.md Add documentation on accessibility. (#38522) 2022-07-14 13:05:39 +00:00
authentication.md Alphabetize auth docs providers. (#34281) 2022-02-13 00:51:53 +00:00
deployment.md Docs: Update deployment.md with Firebase, Amplify and Cloudflare (#44092) 2022-12-17 15:26:29 +00:00
faq.md doc: improve a word client side rendering (#39771) 2022-08-22 14:55:46 -05:00
getting-started.md Add a note about the auto-created empty directory (#43219) 2022-11-22 14:11:55 +00:00
going-to-production.md docs: fix typos (#40342) 2022-09-08 20:38:26 +00:00
manifest.json feat: enables 'edge' as a possible runtime for API routes (#44045) 2022-12-15 10:08:03 +01:00
testing.md Mock @next/font when using next/jest (#42413) 2022-11-03 11:12:46 -07:00
upgrading.md Fix link to next-image-to-legacy-image codemod (#44471) 2022-12-31 21:15:43 +00:00