Skip to content

Developers menu drops PUBLIC_ vars — import.meta.env aliasing defeats rsbuild inlining #97

Description

@mpstaton

Context:

DevelopersMenu.svelte:32-34 assigns import.meta.env to a local before reading PUBLIC_* off it. rsbuild substitutes the base env object wholesale and no PUBLIC_* keys survive, so PUBLIC_ID_BASE resolves to http://localhost:4000 in production despite being set correctly on the Railway service. ws-url.ts:29 reads the member directly and inlines fine — same repo, same build, opposite outcomes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions