Skip to content

src/instrumentation.server.ts is not used with vite preview #14275

@Rich-Harris

Description

@Rich-Harris

Describe the bug

If you have a src/instrumentation.server.ts file along with the experimental flag it will run when you do vite dev. It should also run when you do vite preview

Reproduction

create new project, add experimental.instrumentation.server: true, add src/instrumentation.server.ts with a console.log or whatever, vite build && vite preview, observe that the module is not loaded

Logs

System Info

latest

Severity

annoyance

Additional Information

No response

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