feat: add OpenNextjs preset #179
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new preset,
opennextjs
, to thepackages/presets
module and adds support for skipping project builds in the build context. The changes include defining the configuration, metadata, and prebuild logic for the new preset, as well as updating the build context interface to accommodate the new feature.New
opennextjs
Preset:opennextjs
, with its configuration, metadata, and prebuild logic. This includes defining the build rules, origin settings, and edge function behaviors inopennextjs/config.ts
(packages/presets/src/presets/opennextjs/config.ts
).opennextjs/metadata.ts
to define metadata for the preset, including its name (packages/presets/src/presets/opennextjs/metadata.ts
).opennextjs/prebuild.ts
to handle prebuild actions specific to theopennextjs
preset, such as installing dependencies, running build commands, and populating assets and cache (packages/presets/src/presets/opennextjs/prebuild.ts
).opennextjs
preset inopennextjs/index.ts
to make it available for use (packages/presets/src/presets/opennextjs/index.ts
).opennextjs
preset in the main export file (packages/presets/src/index.ts
).Build Context Enhancement:
skipProjectBuild
property to theBuildContext
interface, allowing builds to skip project-level build steps (packages/config/src/types.ts
).