question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add `--src` option in `create-next-app`

See original GitHub issue

Describe 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:closed
  • Created a year ago
  • Reactions:6
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

0reactions
github-actions[bot]commented, Jul 23, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found