rsnext/docs/basic-features
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
..
data-fetching feat: enables 'edge' as a possible runtime for API routes (#44045) 2022-12-15 10:08:03 +01:00
built-in-css-support.md scss exects semicolon (#36779) 2022-05-12 16:29:01 +00:00
environment-variables.md Update the documentation. (#41758) 2022-10-26 14:04:45 -07:00
eslint.md Update no-img-element lint rule (#43982) 2022-12-13 01:50:59 +00:00
fast-refresh.md docs: minor text-copy cleanup (#33120) 2022-01-10 10:52:47 +00:00
font-optimization.md docs: Add explanation about font-display (#44001) 2022-12-16 06:58:08 +00:00
image-optimization.md Add support for images.loaderFile config (#41585) 2022-10-21 12:31:53 -07:00
layouts.md typo (#42968) 2022-11-15 22:16:30 +00:00
pages.md Fix Static Generation link on Pages page (#42462) 2022-11-04 02:54:16 +01:00
script.md docs(script): explain expected next/script behavior on client-side navigation (#42260) 2022-11-01 20:38:15 -07:00
static-file-serving.md Updated typo in the documentation (#43160) 2022-11-21 13:50:17 +00:00
supported-browsers-features.md docs: Add default browserslist configuration as a starting point (#43260) 2022-11-23 02:29:43 +00:00
typescript.md Update TypeScript API Route example (#44517) 2023-01-03 20:03:44 +00:00