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
Vercel's app directory demo adapted for Pages:
https://github.com/james-elicx/app-playground
https://app-playground-xnd.pages.dev
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.
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...
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.
That's a decent thought, I'll make a note of it 🙂
sorry n00b Q: in the app-playground repo, i don't see the cloudflare dev dependencies, that is a next-on-pages deployment?
Yes. I probably should have added them but I haven't
oh okay awesome, thank you!