Skip to content

How to stream/get logs from background process #857

Description

@boopeshmahendran227

I have a vite project in sandbox and running a vite dev server using sandbox.commands.run by passing background: true. How to get the logs from this process. I tried connecting and getting logs, but it is not working. Below is the code I tried.

const devServerCommand = await sandbox.commands.connect(devServerPid);
return devServerCommand.stdout.trim()

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