Skip to content

Commit d4ca778

Browse files
committed
try without calculateSize
1 parent 0be61b0 commit d4ca778

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/page-props/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export async function getPkgDetails(
4040
if (!pkgSize || force) {
4141
console.log(`Cache miss - running "npm i ${name}@${version}" in ${tmpDir}...`);
4242
const start = new Date();
43-
pkgSize = await calculatePackageSize(name, version, tmpDir);
43+
//pkgSize = await calculatePackageSize(name, version, tmpDir);
4444
await runInSandbox(name, version);
4545
const end = new Date();
4646
const sec = (end.getTime() - start.getTime()) / 1000;

src/util/backend/npm-sanbox.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
import { Sandbox } from '@vercel/sandbox';
22

3-
const teamId = process.env.VERCEL_TEAM_ID || '';
4-
const projectId = process.env.VERCEL_PROJECT_ID || '';
5-
const token = process.env.VERCEL_TOKEN || '';
6-
73
export async function runInSandbox(name: string, version: string) {
84
const sandbox = await Sandbox.create({
9-
teamId,
10-
projectId,
11-
token,
125
runtime: 'node22',
136
resources: {
147
vcpus: 2,

0 commit comments

Comments
 (0)