strapi / strapi-starter-next-corporate

Next.js starter for creating a corporate site with Strapi.
https://strapi-starter-next-corporate.vercel.app
MIT License
346 stars 94 forks source link

PREVIEW_SECRET not working #11

Closed lucafregoso closed 4 years ago

lucafregoso commented 4 years ago

I deployed the project on my local env, but the value i set for PREVIEW_SECRET is not read by Stripe which is always using secret-token . How to let Stripe get the env value?

remidej commented 4 years ago

Do you mean Strapi instead of Stripe?

If so, it may be because the value required by the backend is FRONTEND_PREVIEW_SECRET, not PREVIEW_SECRET

lucafregoso commented 4 years ago

Here you can see my two env files, but none of those values are read

Screenshot 2020-09-02 at 17 52 29 Screenshot 2020-09-02 at 17 52 39
remidej commented 4 years ago

Your environment files look good.

In the backend folder, try running yarn build, then start Strapi again.

Let me know if that fixes the issue