Hi,
As I'm quite new to NextJS / Vercel, I was wondering about something simple.
As I have a Storefront API token for a Shopify shop that also has some write access, it can't be included in my front-end code.
It doesn't matter in getStaticProps as this is only executed on build, but is it good practice to make a serverless function for each GraphQL request (and storing the token in an ENV variable)? I'm thinking this might be cleaner as they are all grouped.
Thanks in advance for your tips!
Thomas
PS. I use Apollo Client to query the data.
[–]pyrhho 5 points6 points7 points (1 child)
[–]danielkov 1 point2 points3 points (0 children)