matt HOFFNER commited on
Commit
a292c9d
·
1 Parent(s): 8277120

getInitialProps?

Browse files
Files changed (1) hide show
  1. src/app/search/web/page.jsx +9 -0
src/app/search/web/page.jsx CHANGED
@@ -103,4 +103,13 @@ export default function WebSearchPage({ params, searchParams }) {
103
  </MemoizedReactMarkdown>
104
  </div>
105
  );
 
 
 
 
 
 
 
 
 
106
  }
 
103
  </MemoizedReactMarkdown>
104
  </div>
105
  );
106
+ }
107
+
108
+
109
+ export async function getInitialProps(context) {
110
+ // You can access the query parameters of the request with context.query
111
+ const searchParams = context.query;
112
+
113
+ console.log(context);
114
+ return { props: { searchParams } };
115
  }