Skip to content

Commit 1c22d14

Browse files
JamBalaya56562ijjk
andauthored
chore: delete api-routes example completely (vercel#72437)
## Description At vercel#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-guide Co-authored-by: JJ Kasper <[email protected]>
1 parent 40de42a commit 1c22d14

File tree

4 files changed

+10
-46
lines changed

4 files changed

+10
-46
lines changed

examples/api-routes/.gitignore

Lines changed: 0 additions & 40 deletions
This file was deleted.

examples/route-handlers/.gitignore

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
# dependencies
44
/node_modules
55
/.pnp
6-
.pnp.js
7-
.yarn/install-state.gz
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
812

913
# testing
1014
/coverage
@@ -25,8 +29,8 @@ npm-debug.log*
2529
yarn-debug.log*
2630
yarn-error.log*
2731

28-
# local env files
29-
.env*.local
32+
# env files (can opt-in for committing if needed)
33+
.env*
3034

3135
# vercel
3236
.vercel

packages/create-next-app/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,5 @@ Options:
127127
- **Interactive Experience**: Running `npx create-next-app@latest` (with no arguments) launches an interactive experience that guides you through setting up a project.
128128
- **Zero Dependencies**: Initializing a project is as quick as one second. Create Next App has zero dependencies.
129129
- **Offline Support**: Create Next App will automatically detect if you're offline and bootstrap your project using your local package cache.
130-
- **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`).
130+
- **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`).
131131
- **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.

test/examples/examples.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const testedExamples = [
88
'amp',
99
'amp-first',
1010
'amp-story',
11-
'api-routes',
1211
'api-routes-cors',
1312
'api-routes-middleware',
1413
'api-routes-rate-limit',
@@ -45,6 +44,7 @@ const testedExamples = [
4544
'remove-console',
4645
'reproduction-template',
4746
'rewrites',
47+
'route-handlers',
4848
'script-component',
4949
'ssr-caching',
5050
'styled-jsx-with-csp',

0 commit comments

Comments
 (0)