Unverified Commit 1c22d142 authored by Jam Balaya's avatar Jam Balaya Committed by GitHub

chore: delete `api-routes` example completely (#72437)

## Description
At #68771,
[`api-routes`](https://github.com/vercel/next.js/tree/canary/examples/api-routes)
example was renamed
[`route-handlers`](https://github.com/vercel/next.js/tree/canary/examples/route-handlers).
However,
[`.gitignore`](https://github.com/vercel/next.js/blob/canary/examples/api-routes/.gitignore)
wasn't deleted and a new
[`.gitignore`](https://github.com/vercel/next.js/blob/canary/examples/route-handlers/.gitignore)
file isn't updated.

In addition, some `api-routes` names exist in the other place.
That's why I update those.

### Improving Documentation

- [x] Run `pnpm prettier-fix` to fix formatting issues before opening
the PR.
- [x] Read the Docs Contribution Guide to ensure your contribution
follows the docs guidelines:
https://nextjs.org/docs/community/contribution-guideCo-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent 40de42a4
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions
# testing
/coverage
# next.js
/.next/
/out/
# production
/build
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# env files (can opt-in for commiting if needed)
.env*
# vercel
.vercel
# typescript
*.tsbuildinfo
next-env.d.ts
...@@ -3,8 +3,12 @@ ...@@ -3,8 +3,12 @@
# dependencies # dependencies
/node_modules /node_modules
/.pnp /.pnp
.pnp.js .pnp.*
.yarn/install-state.gz .yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions
# testing # testing
/coverage /coverage
...@@ -25,8 +29,8 @@ npm-debug.log* ...@@ -25,8 +29,8 @@ npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
# local env files # env files (can opt-in for committing if needed)
.env*.local .env*
# vercel # vercel
.vercel .vercel
......
...@@ -127,5 +127,5 @@ Options: ...@@ -127,5 +127,5 @@ Options:
- **Interactive Experience**: Running `npx create-next-app@latest` (with no arguments) launches an interactive experience that guides you through setting up a project. - **Interactive Experience**: Running `npx create-next-app@latest` (with no arguments) launches an interactive experience that guides you through setting up a project.
- **Zero Dependencies**: Initializing a project is as quick as one second. Create Next App has zero dependencies. - **Zero Dependencies**: Initializing a project is as quick as one second. Create Next App has zero dependencies.
- **Offline Support**: Create Next App will automatically detect if you're offline and bootstrap your project using your local package cache. - **Offline Support**: Create Next App will automatically detect if you're offline and bootstrap your project using your local package cache.
- **Support for Examples**: Create Next App can bootstrap your application using an example from the Next.js examples collection (e.g. `npx create-next-app --example api-routes`). - **Support for Examples**: Create Next App can bootstrap your application using an example from the Next.js examples collection (e.g. `npx create-next-app --example route-handlers`).
- **Tested**: The package is part of the Next.js monorepo and tested using the same integration test suite as Next.js itself, ensuring it works as expected with every release. - **Tested**: The package is part of the Next.js monorepo and tested using the same integration test suite as Next.js itself, ensuring it works as expected with every release.
...@@ -8,7 +8,6 @@ const testedExamples = [ ...@@ -8,7 +8,6 @@ const testedExamples = [
'amp', 'amp',
'amp-first', 'amp-first',
'amp-story', 'amp-story',
'api-routes',
'api-routes-cors', 'api-routes-cors',
'api-routes-middleware', 'api-routes-middleware',
'api-routes-rate-limit', 'api-routes-rate-limit',
...@@ -45,6 +44,7 @@ const testedExamples = [ ...@@ -45,6 +44,7 @@ const testedExamples = [
'remove-console', 'remove-console',
'reproduction-template', 'reproduction-template',
'rewrites', 'rewrites',
'route-handlers',
'script-component', 'script-component',
'ssr-caching', 'ssr-caching',
'styled-jsx-with-csp', 'styled-jsx-with-csp',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment