Skip to content

Commit 5fc22f8

Browse files
Search page (#73)
* feat: base search * feat: link pills, speakers and topic cards to search * feat: mobile responsiveness * fix: cleanups and loader * fix: sort fields and query * refactor: switch useSearch to context from hook * fix: prevent deopt to CSR with suspense * feat: clickable pills either as link or function * feat: loaders * fix: use tagsDetailed from rebase * fix: search behaviour logic and search results ui * refactor: break search box into mobile component, standalone mobile filter menu * fix(hydration-error): Pills as buttons on featured transcripts * fix(review-fixes): source naming, result card UI, pagination, readme, use summary * fix(review-fixes): searchbox clear on page navigation and get topic title for topics facet * feat(optimizations): too many unnecessary prefetch requests, remove bloated data from landing page * fix(search): prevent overflow on search results, add mapped topic name in applied filters * fix(mobile): quality of life improvements
1 parent 23e4f79 commit 5fc22f8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2414
-108
lines changed

.env.example

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
API_KEY="ELASTIC_API_KEY"
2+
CLOUD_ID="ELASTIC_CLOUD_ID"
3+
INDEX="ELASTIC_INDEX"

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next
22

33
## Getting Started
44

5-
First, run the development server:
5+
Get keys for ElasticSearch and add them to `.env.` file.
6+
namely: `API_KEY`, `CLOUD_ID`, and `INDEX`.
7+
8+
Then, run the development server:
69

710
```bash
811
npm run dev

next.config.mjs

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/** @type {import('next').NextConfig} */
2+
import exp from "constants";
23
import { withContentlayer } from "next-contentlayer2";
34
const nextConfig = {
45
rewrites: async () => {
@@ -49,6 +50,9 @@ const nextConfig = {
4950
},
5051
],
5152
},
53+
experimental: {
54+
missingSuspenseWithCSRBailout: false,
55+
},
5256
};
5357

5458
export default withContentlayer(nextConfig);

0 commit comments

Comments
 (0)