Skip to content

vercel dev still results to release build of rust #167

@Zxilly

Description

@Zxilly

Seems the debug build only be enabled if VERCEL_BUILDER_DEBUG was set. But I think vercel cli won't set this. We need other way to know which mode we are running.

const BUILDER_DEBUG = Boolean(process.env.VERCEL_BUILDER_DEBUG ?? false);

rust/src/index.ts

Lines 71 to 81 in 954bdba

await execa(
'cargo',
['build', '--bin', binaryName].concat(
BUILDER_DEBUG ? ['--verbose'] : ['--quiet', '--release'],
),
{
cwd: workPath,
env: rustEnv,
stdio: 'inherit',
},
);

Set this env manully won't be good idea as it produces lot of unnecessary log.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions