Skip to content
Discussion options

You must be logged in to vote

it's designed to be public. It's expected that the license key will be exposed in a JavaScript bundle; we simply ask licensed users not to actively publicize their license key.

In that link they say's the key is designed to be public, so there's no issue in sending it to the browser.

we recommend hard-coding the license key in git

They even say that unless your repo is public you should inline the key in the code.

So don't overthink this, keep it in the code or if you use an env variable return it from your loaders, or even use VITE_ prefixed env variables to hard-code it at build time.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@sureshg7254
Comment options

@sergiodxa
Comment options

@sureshg7254
Comment options

@sergiodxa
Comment options

Answer selected by sureshg7254
@sureshg7254
Comment options

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