Skip to content
Discussion options

You must be logged in to vote

Didn't miss anything, see Vite's docs for environment variables: https://vitejs.dev/guide/env-and-mode.html

WXT doesn't change anything, but environment variables aren't available everywhere, like when reading your entrypoints to generate the manifest.

If you want to use env variables to configure content script matches for example, you won't be able to use env variables for that. See https://discord.com/channels/1212416027611365476/1224505556346212515/1230108944102326282

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Wizzel1
Comment options

Answer selected by Wizzel1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants