Skip to content
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

feat(nextjs): allows inferrable build target #17771

Closed

Conversation

ZackDeRose
Copy link
Member

Current Behavior

See: #16064 - we currently cannot take advantage of the withNx utility unless we're using an Nx executor.

Expected Behavior

Should be able to infer the current build target if a target named "build" exists in the project being run.

Related Issue(s)

Fixes #16064

Notes

@jaysoo I'll reach out when I'm back in the office to see if this fix if this is the right way to go. I think an alternative (or supplemental?) approach might be to support a buildTarget option for the withNx utility (e.g. in next.config.js: module.exports = withNx(nextConfig, { buildTarget: 'my-app:build' });)

@ZackDeRose ZackDeRose requested a review from a team as a code owner June 24, 2023 23:56
@ZackDeRose ZackDeRose requested a review from xiongemi June 24, 2023 23:56
@vercel
Copy link

vercel bot commented Jun 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 24, 2023 11:59pm

@nx-cloud
Copy link

nx-cloud bot commented Jun 24, 2023

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 3d3c3fc. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@jaysoo
Copy link
Member

jaysoo commented Jun 27, 2023

Closing this in favor of the other PR I opened. #17819

@jaysoo jaysoo closed this Jun 27, 2023
@github-actions
Copy link

github-actions bot commented Jul 3, 2023

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running Nextron(Next js library) inside NX monorepo
2 participants