Spaces:
Paused
Paused
matt HOFFNER
commited on
Commit
·
3bd5951
1
Parent(s):
f3b4042
getSTaticProps?
Browse files
src/app/search/web/page.jsx
CHANGED
@@ -8,7 +8,7 @@ export default function WebSearchPage({ params, searchParams }) {
|
|
8 |
const [searchTerm, setSearchTerm] = useState()
|
9 |
|
10 |
useEffect(() => {
|
11 |
-
console.log(params,
|
12 |
setSearchTerm(searchParams.searchTerm)
|
13 |
}, [searchParams])
|
14 |
|
@@ -105,7 +105,7 @@ export default function WebSearchPage({ params, searchParams }) {
|
|
105 |
);
|
106 |
}
|
107 |
|
108 |
-
export async function
|
109 |
// You can access the query parameters of the request with context.query
|
110 |
const searchParams = context.query;
|
111 |
|
|
|
8 |
const [searchTerm, setSearchTerm] = useState()
|
9 |
|
10 |
useEffect(() => {
|
11 |
+
console.log(params,searchParams);
|
12 |
setSearchTerm(searchParams.searchTerm)
|
13 |
}, [searchParams])
|
14 |
|
|
|
105 |
);
|
106 |
}
|
107 |
|
108 |
+
export async function getStaticProps(context) {
|
109 |
// You can access the query parameters of the request with context.query
|
110 |
const searchParams = context.query;
|
111 |
|