Skip to content

env issue #60

@gaetbout

Description

@gaetbout

Although I specified the env file, for some reason the code:

src/constants/rpc.ts

export const RPC_URL =
  IS_EMBEDDED === "true"
    ? window.location.origin
    : window.RPC_URL ?? import.meta.env.VITE_RPC_URL;

Wasn't picking up my RPC URL.
I had to update that line to:

export const RPC_URL = import.meta.env.VITE_RPC_URL;

For it to work

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