Skip to content

How to pass environment variables to my code? #4170

Closed
@blackcatIan

Description

@blackcatIan

There is
environment.prod.ts and environment.ts
I put different variables value in them like:

//environment.ts
export const environment = {
production: false,
loginurl:"localhost:8080"
};

//environment.prod.ts
export const environment = {
production: false,
loginurl:"xxx.xxx.com"
};

how can I read loginurl variable with defferent webpack environment?

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