How to export page with getServerSideProps as fetch method
Unanswered
LaPerm posted this in #help-forum
LaPermOP
Hi,
I'm building an app where we use getServerSideProps to get all the data to fill on our pages. We use React Query to fetch the data (graphql). Right now we're looking in exporting a few pages (via a dynamic route option, and regular pages via the page router) to use in a deployment. The thing we run in to is that we get the data server side and are unable to export some of the pages we want. Is there a way to get this done? I looked into getStatichPaths, but haven't been successful so far.
Thanks!
I'm building an app where we use getServerSideProps to get all the data to fill on our pages. We use React Query to fetch the data (graphql). Right now we're looking in exporting a few pages (via a dynamic route option, and regular pages via the page router) to use in a deployment. The thing we run in to is that we get the data server side and are unable to export some of the pages we want. Is there a way to get this done? I looked into getStatichPaths, but haven't been successful so far.
Thanks!