File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change 11import { 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-
73export 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 ,
You can’t perform that action at this time.
0 commit comments