-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(samples/headless-ssr): move existing components under app/ssr (#…
…3114) * Move existing cmps under app/ssr https://coveord.atlassian.net/browse/KIT-2683 * add a empty page for / route to fix ci error https://coveord.atlassian.net/browse/KIT-2683 * rename ssr route to generic https://coveord.atlassian.net/browse/KIT-2683
- Loading branch information
1 parent
59964f9
commit 01a4681
Showing
7 changed files
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import {fetchInitialState} from '@/src/app/generic/common/engine'; | ||
import SearchPage from '@/src/app/generic/components/search-page'; | ||
|
||
// Entry point SSR function | ||
export default async function Search() { | ||
const ssrState = await fetchInitialState(); | ||
return <SearchPage ssrState={ssrState}></SearchPage>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1 @@ | ||
import {fetchInitialState} from '@/src/common/engine'; | ||
import SearchPage from '@/src/components/search-page'; | ||
|
||
// Entry point SSR function | ||
export default async function Search() { | ||
const ssrState = await fetchInitialState(); | ||
return <SearchPage ssrState={ssrState}></SearchPage>; | ||
} | ||
export default function Home() {} |