-
Notifications
You must be signed in to change notification settings - Fork 27.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --api Flag to Create Headless API App with create-next-app #68130
Conversation
Signed-off-by: Arindam Majumder <[email protected]>
Allow CI Workflow Run
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer |
Allow CI Workflow Run
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer |
Co-authored-by: Mert Can Altin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a few tests at test/integration/create-next-app
.
Co-authored-by: Jiwon Choi <[email protected]>
Co-authored-by: Jiwon Choi <[email protected]>
Co-authored-by: Jiwon Choi <[email protected]>
I tried pushing to this but looks like I don't have access. @Arindam200 |
Sure, I'm giving you the access |
I've invited you, can you please accept that? |
Co-authored-by: Ahmed Abdelbaset <[email protected]>
Sure. I won't do that. Thanks |
return true; // For now, always return true | ||
} | ||
|
||
export function requestHandler<T = Record<string, string | string[]>>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need better name & comments, maybe structure as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @devjiwonchoi ,
I've added some comments. Let me know if that works.
Is this going to be released soon ? --api would be really helpful |
Any timeline for the release of this? |
Hi @devjiwonchoi, It's been a while. Did you get a chance to check this PR? |
What?
Added a new option for
create-next-app
to create a headless API app. This includes:--api
flag forcreate-next-app
to create a headless app.public/
,app/page.*
, etc.).@types/react
,react
, etc.).Why?
This feature allows users to initialize projects with headless API templates, making it easier to set up projects that require backend functionality without frontend components.
How?
--api
flag to thecreate-next-app
command.Closes #68118
Closes NEXT-3633
Closes NDX-120