cf3d73a46b
### 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 (@/*)? ``` |
||
---|---|---|
.. | ||
01-installation.mdx | ||
02-project-structure.mdx | ||
index.mdx |