Skip to content

Commit 1e22475

Browse files
authored
Undo regression hotfix (#14155)
1 parent e961ef6 commit 1e22475

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.changeset/dry-rocks-walk.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'vercel': patch
3+
---
4+
5+
Enable experimental backends mode

packages/cli/src/commands/build/index.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import fs, { existsSync } from 'fs-extra';
44
import minimatch from 'minimatch';
55
import { join, normalize, relative, resolve, sep } from 'path';
66
import semver from 'semver';
7-
// import * as experimentalBackendBuilder from '@vercel/backends';
7+
import * as experimentalBackendBuilder from '@vercel/backends';
88

99
import {
1010
download,
@@ -28,7 +28,7 @@ import {
2828
type FlagDefinitions,
2929
type Meta,
3030
type PackageJson,
31-
// shouldUseExperimentalBackends,
31+
shouldUseExperimentalBackends,
3232
} from '@vercel/build-utils';
3333
import type { VercelConfig } from '@vercel/client';
3434
import { fileNameSymbol } from '@vercel/client';
@@ -643,13 +643,12 @@ async function doBuild(
643643
() => {
644644
// Use experimental backends builder only for backend framework builders,
645645
// not for static builders (which handle public/ directories)
646-
// hotfix: disable experimental backends for now
647-
// if (
648-
// shouldUseExperimentalBackends(buildConfig.framework) &&
649-
// builderPkg.name !== '@vercel/static'
650-
// ) {
651-
// return experimentalBackendBuilder.build(buildOptions);
652-
// }
646+
if (
647+
shouldUseExperimentalBackends(buildConfig.framework) &&
648+
builderPkg.name !== '@vercel/static'
649+
) {
650+
return experimentalBackendBuilder.build(buildOptions);
651+
}
653652
return builder.build(buildOptions);
654653
}
655654
);

0 commit comments

Comments
 (0)