N
Nuxt7mo ago
Sudhi

Need some help activating my pro license key.

Hi everyone, I hope you're well. Please forgive me if this is a silly question, but my background is in UX, but I have some basic understanding of frontend development. I've been learning vue and nuxt to build myself a portfolio site. I've managed to get it almost done using the free plan, but now I'm ready to deploy it using Netlify. I've managed to create a new repo and push all the changes. I then went to Netlify and attempted to deploy it, but it obviously wouldn't work in production because I haven't bought a license yet. So I just purchased a license, and added that key to my .env.example file, pushed all the updates to the repo and tried to deploy again, but it's still not working. My first thought is that the syntax was wrong and I've wrapped they key using "< .. >", but that hasn't worked either. Would anybody be kind enough to help me out with this? Thank you! 1:42:23 PM: [error] Missing NUXT_UI_PRO_LICENSE license key. 1:42:23 PM: Purchase Nuxt UI Pro at https://ui.nuxt.com/pro/pricing to build your app in production. 1:42:23 PM: [error] Missing NUXT_UI_PRO_LICENSE license key. 1:42:23 PM: Purchase Nuxt UI Pro at https://ui.nuxt.com/pro/pricing to build your app in production. 1:42:23 PM: ​ 1:42:23 PM: "build.command" failed
1:42:23 PM: ──────────────────────────────────────────────────────────────── 1:42:23 PM: ​ 1:42:23 PM: Error message 1:42:23 PM: Command failed with exit code 1: npm run build
3 Replies
manniL
manniL7mo ago
1) never set keys in an .env.example This is meant to show which env variables are needed Make sure to remove the commit from your git history, otherwise people with access to the repo can use the key 2) Netlify has a setting online for env variables. Add them there (without <>) and you are good! You might have to redeploy
Sudhi
SudhiOP7mo ago
@manniL / TheAlexLichter thank you so much! testing it now. had no idea about the fact that .env.example wasn't supposed to contain information, ha the repo is on private, that should be okay right? it worked! thank you so much. I love ya ❤️
manniL
manniL7mo ago
I’d clear it right away just to avoid to leak it later when you forgot about it 😁 You are welcome!
Want results from more Discord servers?
Add your server