Skip to content

Commit d651cb9

Browse files
committed
correct fix to migrateProjectConfig
1 parent ef7bb3f commit d651cb9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/project/project-context.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,10 @@ async function resolveProjectExtension(
657657
// TODO make this a deprecation warning
658658
function migrateProjectConfig(projectConfig: ProjectConfig) {
659659
const kSite = "site";
660-
if (projectConfig[kSite] === undefined) {
660+
if (
661+
projectConfig.project[kProjectType] !== kSite &&
662+
projectConfig[kSite] === undefined
663+
) {
661664
return projectConfig;
662665
}
663666

0 commit comments

Comments
 (0)