leerob.io | portfolio built with Next.js , Tailwind CSS | Portfolio library
kandi X-RAY | leerob.io Summary
kandi X-RAY | leerob.io Summary
✨ My portfolio built with Next.js, Tailwind CSS, PlanetScale, and Vercel.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of leerob.io
leerob.io Key Features
leerob.io Examples and Code Snippets
Community Discussions
Trending Discussions on leerob.io
QUESTION
I'm looking for a way to have a dynamic route that displays for every document in a Firestore collection using Server-side Rendering.
For example, a document called foo
would exist at test.com/foo
under the [doc]
page component. Any time a document is added, it should be able to be accessed through its respective URL.
I've tried this method but I haven't been able to get it to work.
I've also tried implementing getServerSideProps
but have not had much success, any pointers would be appreciated.
Code from the method above as follows:
under pages/api/[doc].js
ANSWER
Answered 2021-Sep-04 at 18:17You can try using getServerSideProps
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install leerob.io
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page