diff --git a/src/schematics/deploy/actions.ts b/src/schematics/deploy/actions.ts index b171491ab..56a81692a 100644 --- a/src/schematics/deploy/actions.ts +++ b/src/schematics/deploy/actions.ts @@ -426,7 +426,8 @@ export const deployToCloudRun = async ( fsHost.copySync(staticOut, newStaticOut); fsHost.copySync(serverOut, newServerOut); - const packageJson = getPackageJson(context, workspaceRoot, options, join(serverBuildOptions.outputPath, 'main.js')); + // Target runtime is Linux based. + const packageJson = getPackageJson(context, workspaceRoot, options, [serverBuildOptions.outputPath, 'main.js'].join('/')); const nodeVersion = packageJson.engines.node; if (!satisfies(process.versions.node, nodeVersion.toString())) {