fuentesloic / nuxt-stripe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stripe secret not loads on production env on the server

CyberCowboy404 opened this issue · comments

During development everything working fine.
But on the production when I check webhook, I'm getting error no key given for server service
I see my ENV variables on the server, and I can see that all data is there.

Can problem be because I use

  stripe: {
    server: {
      key: process.env.NUXT_STRIPE_SECRET ?? '',
    },
    client: {
      key: process.env.NUXT_STRIPE_PUBLISHABLE ?? '',
    },
  },

I already noticed some bugs with nuxt, when it doesn't check vars I have not directly in runtimeConfig

Hey @CyberCowboy404 can you provide som repo and where you try to deploy please :) ?