Add `--src` option in `create-next-app`
See original GitHub issueDescribe the feature you’d like to request
I want to be able to initialize a Next.js app with the src
directory.
It is currently a hassle to create the src
on your own and move pages
and other folders to it.
Describe the solution you’d like
Add an option to create-next-app
to be able to do that. Like: --src
, --with-src
, or similar.
Describe alternatives you’ve considered
None.
Issue Analytics
- State:
- Created a year ago
- Reactions:6
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Create Next App | Next.js
The easiest way to get started with Next.js is by using create-next-app . This CLI tool enables you to quickly start building a...
Read more >How to use the src directory and absolute imports in Next.js
... get it) can live in the src directory and I can import it using absolute imports. Make a tsconfig.json or jsconfig.json file;...
Read more >How to Source MDX Content in Next.js to Dynamically Create ...
To learn how to add MDX to a project, we're going first source a few MDX files, ... Step 0: Creating a new...
Read more >How to add an image in next.js? - Medium
js and define the image path in src props in the image component. import Image from 'next/image' import mypic from '../asset/myimage.png' const ...
Read more >Tutorial - Set up fullstack project - Next.js - AWS Amplify Docs
You'll then add Amplify and initialize a new project. ... proper configuration for type of app, framework, source, distribution, build, and start options....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing as per https://github.com/vercel/next.js/pull/37557#issuecomment-1163117125
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.