Skip to content

issues with Google cloud run and K8? #998

Closed

Description

@dweng0

Hi all, has anyone else had trouble with getting import.meta.env... variables working in GCR? We have multiple services but one UI uses VITE, we have configured a server endpoint with an env variable of:

const SERVER_ENDPOINT = import.meta.env.VITE_SERVER_ENDPOINT;

This works locally as a docker image But, the endpoint is undefined on GCR.
It also works on other services that use older dotenv methods to retrieve environment variables.

My next process will be to use a different bundler/UI tool, (essentially one that doesn't use import.meta.env) but wanted to see if anyone else has come across this issue?

Activity

  1. locked and limited conversation to collaborators on Sep 1, 2023
  2. converted this issue into a discussion #1023 on Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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