Skip to content

Support for environment variables for build command #909

@CodingFlow

Description

@CodingFlow

I'm building a Leptos app deployed as an AWS Lambda, so I need to specify an environment variable for cargo lambda build for it to build the server side with the right data. I was hoping I could specify environment variables in a configuration file instead of setting it every time cargo lambda build is called, but looks like it is not supported. Can we add support for it so we can specify it in CargoLambda.toml:

[build]
env_var = [
    "LEPTOS_OUTPUT_NAME=appname",
]

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