Skip to content

vercel dev does not load .env.local or process env #178

Open
@GeeWee

Description

@GeeWee

I would expect the rust runtime to act approximately like NextJS and load .env and .env.local when running the dev command.

However it only seems to pick environment variables from .env and not .env.local. It seems like this logic is located here in the vercel CLI and hard-coded. I assume this means the runtime is responsible for handling of any other .env files?

If that's the case, is there any chance we can export env variables defined in the process for use in the rust serverless functions, or manually pick up and export .env.local or similar?

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