rsnext/docs
Vũ Văn Dũng cf3d73a46b
Add the default import alias to create-next-app prompt for clarity (#55896)
### Why?

Whenever I run `create-next-app` and reach this question

```
Would you like to customize the default import alias? No / Yes
```

I always have to select "No", because I don't remember what this default import alias here is. [It _is_ documented to be `@/*`](https://nextjs.org/docs/app/api-reference/create-next-app#non-interactive), but the documentation is relatively hidden and not many people know about it – it's also easy to forget.

Even more confusingly, the next question ("What import alias would you like configured?") doesn't have this `@/*` as the default answer, but the user's last choice as the default answer instead (which could be different from `@/*` – making people wonder if Next.js changed their defaults overnight).

I suppose it would be better to just make it clear in the prompt itself, so people with skill issues who happen to forget that default value (like me) can still confidently select "Yes" if they want `@/*`, without having to do "No" and manually type `@/*` again.

### How

```diff
- Would you like to customize the default import alias?
+ Would you like to customize the default import alias (@/*)?
```
2023-09-26 22:58:46 +00:00
..
01-getting-started Add the default import alias to create-next-app prompt for clarity (#55896) 2023-09-26 22:58:46 +00:00
02-app Add the default import alias to create-next-app prompt for clarity (#55896) 2023-09-26 22:58:46 +00:00
03-pages Update 10-testing.mdx (#55801) 2023-09-23 01:11:46 +00:00
04-architecture add tip for case sensitivity of imports (#55662) 2023-09-20 21:12:40 +00:00
05-community docs: Update Vercel YouTube channel url (#54912) 2023-09-03 00:10:00 +00:00
index.mdx docs: Rewrite Rendering Section and React Essentials Page (#51579) 2023-08-24 08:48:44 -05:00