Skip to content

Commit 631897b

Browse files
committed
SSR section
1 parent 7d7fdf7 commit 631897b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ Scripts itself are also exposed (and left unused) as API endpoints in [app/api/p
184184

185185
### Server side rendering
186186

187+
Currently there are 115 months in history, it is not practical to prerender that many pages. For performance and SEO reasons server side rendering is always preferred to client side. Month is used as dynamic param, validated by Regex and database lookup, cached database query is read and the page is generated on server at request time. This is true for all 3 pages. Scroll position is stored in localStorage on `onChange` Select control event, read, restored and cleared on page load. For search page query param is passed as dynamic route param, as described in [Next.js docs](https://nextjs.org/learn/dashboard-app/adding-search-and-pagination).
188+
187189
### Docker
188190

189191
### Plausible analytics
@@ -202,7 +204,7 @@ Scripts itself are also exposed (and left unused) as API endpoints in [app/api/p
202204
- Shadcn components docs https://ui.shadcn.com/docs/components/accordion
203205
- Shadcn chart examples https://ui.shadcn.com/charts
204206
- Shadcn data table docs https://ui.shadcn.com/docs/components/data-table
205-
- Search and pagination as url query params to keep SSR for filtering Products list https://nextjs.org/learn/dashboard-app/adding-search-and-pagination
207+
- Search and pagination as url query params to keep SSR https://nextjs.org/learn/dashboard-app/adding-search-and-pagination
206208
- HN Algolia API docs https://hn.algolia.com/api
207209
- Plausible configuration https://github.com/4lejandrito/next-plausible
208210
- Remove database connection from global scope to remove database connection dependency at build time for a Next.js app https://github.com/vercel/next.js/discussions/35534#discussioncomment-11385544

0 commit comments

Comments
 (0)