Skip to content

Commit 72373d5

Browse files
authored
Fix vc build regression (#14149)
1 parent 2269fbc commit 72373d5

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.changeset/old-cobras-visit.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+
Fix vc build regression

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

Lines changed: 9 additions & 8 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,12 +643,13 @@ async function doBuild(
643643
() => {
644644
// Use experimental backends builder only for backend framework builders,
645645
// not for static builders (which handle public/ directories)
646-
if (
647-
shouldUseExperimentalBackends(buildConfig.framework) &&
648-
builderPkg.name !== '@vercel/static'
649-
) {
650-
return experimentalBackendBuilder.build(buildOptions);
651-
}
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+
// }
652653
return builder.build(buildOptions);
653654
}
654655
);

0 commit comments

Comments
 (0)