How to get previous url in react gatsby
I am pretty much familiar with the React.js
but new to Gatsby
.
I am pretty much familiar with the React.js
but new to Gatsby
.
I am getting this error "Error: getStaticPaths is required for dynamic SSG pages and is missing for 'xxx'"
when I try to create my page in NextJS.
When using NextJS to build a static site, I would like the getInitialProps
method to fire only during the build step and not on the client.