bluebeel / nextjs-shopify

This repository contains the app without webhook for the Build a Shopify app with Node and React tutorial.
nextjs-shopify-bluebeel.vercel.app
MIT License
75 stars 22 forks source link

Caching at the backend #1

Closed tommy921092 closed 3 years ago

tommy921092 commented 3 years ago

Noticed that you have made protected route for Shopify Admin API in both graphql and rest, wondering how you will handle the caching at the backend? It seems that custom API routes can be cached by setting serverless.yml under cloudfront inputs as mentioned in serverless-next. I am familiar with the monolith approach which is using koa custom server with apollo client created so I can use the handlers for API calls at the backend with caching(official shopify-app-node/server side apollo client), but Im not sure how its done in serverless.