Skip to content

setResult doesn't return a file #14

@moorthi07

Description

@moorthi07

How to return a file from Deployd?
Neither of these work.

ctx.res.setHeader('Content-Type', 'application/zip');
ctx.res.end(fs.readFileSync(filePath));
or
setResult(fs.readFileSync(filePath));

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