matt HOFFNER commited on
Commit
3bd5951
·
1 Parent(s): f3b4042

getSTaticProps?

Browse files
Files changed (1) hide show
  1. src/app/search/web/page.jsx +2 -2
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, searchParams);
12
  setSearchTerm(searchParams.searchTerm)
13
  }, [searchParams])
14
 
@@ -105,7 +105,7 @@ export default function WebSearchPage({ params, searchParams }) {
105
  );
106
  }
107
 
108
- export async function getServerSideProps(context) {
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