Skip to content

Docs doesn't specify that import.meta.env is evaluated at build time with SSR adapter. #8509

@feelixe

Description

@feelixe

📋 Explain your issue

In the docs it's not mentioned that using import.meta.env will be evaluated at build time. If you are using static generation, that goes without saying. But with a SSR adapter, I think many will expect this to be evaluated per request at runtime. I at least did until i looked in the transpiled server files.

I believe some clarification would be good.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomershelp wantedIssues looking for someone to run with them!improve or update documentationEnhance / update existing documentation (e.g. add example, improve description, update for changes)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions