Is there an example next.js on pages example repository?

Are there any example repositories which incorporate some sort of api/backend/fetch example? I've been unable to get any of the following working on nextjs/pages: - app directory with fetch - pages directory getServerSideProps - pages/api with edge untime Example which does something more than static text would be helpful, does anything like this exist?
7 Replies
James
James•2y ago
GitHub
GitHub - james-elicx/app-playground
Contribute to james-elicx/app-playground development by creating an account on GitHub.
Next.js App Router
A playground to explore new Next.js App Router features such as nested layouts, instant loading states, streaming, and component level data fetching.
James
James•2y ago
And some apps we use to test next-on-pages during development: https://github.com/dario-piotrowicz/next-apps-for-testing
GitHub
GitHub - dario-piotrowicz/next-apps-for-testing: very simple nextjs...
very simple nextjs apps used to manually test next-on-pages, until we find a better solution - GitHub - dario-piotrowicz/next-apps-for-testing: very simple nextjs apps used to manually test next-on...
ian
ianOP•2y ago
Thanks, https://github.com/james-elicx/app-playground worked great. Consider adding a section to the readme with this? It's helpful to have something to play with that works out of box.
GitHub
GitHub - james-elicx/app-playground
Contribute to james-elicx/app-playground development by creating an account on GitHub.
James
James•2y ago
That's a decent thought, I'll make a note of it 🙂
Donnager
Donnager•2y ago
sorry n00b Q: in the app-playground repo, i don't see the cloudflare dev dependencies, that is a next-on-pages deployment?
James
James•2y ago
Yes. I probably should have added them but I haven't
Donnager
Donnager•2y ago
oh okay awesome, thank you!
Want results from more Discord servers?
Add your server