Skip to content

Commit 77fd70a

Browse files
committed
include prerelease
1 parent 6e3c0f3 commit 77fd70a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/adapter/adapter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const adapter: NextAdapter = {
2121
if (
2222
ctx?.phase === 'phase-production-build' &&
2323
config.output !== 'export' &&
24-
satisfies(ctx.nextVersion, `>=${MIN_NEXT_VERSION}`)
24+
satisfies(ctx.nextVersion, `>=${MIN_NEXT_VERSION}`, { includePrerelease: true })
2525
) {
2626
console.log('modifyConfig 2')
2727
// If not export, make sure to not build standalone output to avoid wasteful work
@@ -40,7 +40,7 @@ const adapter: NextAdapter = {
4040
},
4141
async onBuildComplete(ctx) {
4242
console.log('onBuildComplete 1')
43-
if (!satisfies(ctx.nextVersion, `>=${MIN_NEXT_VERSION}`)) {
43+
if (!satisfies(ctx.nextVersion, `>=${MIN_NEXT_VERSION}`, { includePrerelease: true })) {
4444
// if we don't save an adapter manifest and unset the standalone config,
4545
// we will continue to use standalone mode.
4646
return

0 commit comments

Comments
 (0)