Jump to content
Search Community

b1mind

Premium
  • Posts

    33
  • Joined

  • Last visited

Community Answers

  1. b1mind's post in Member plugin error in Vite on Netlify deploy was marked as the answer   
    Can you run a build locally and preview then maybe show the error?  Are you using a framework with Vite? Do you have a repository you could share? (make sure you don't have your auth exposed, read below)
     
    You don't want to put your auth code for gsap right in your .npmrc as it would be public in your repo (same with .env never upload to your repo for build steps) so you use an env var on the server side like so. 
     
    package.json
    "gsap": "npm:@gsap/shockingly@^3.11.1"
     
    .npmrc
    always-auth=true @gsap:registry=https://npm.greensock.com //npm.greensock.com/:_authToken=${GIT_TOKEN}  

×
×
  • Create New...