Spaces:
Paused
Paused
matt HOFFNER
commited on
Commit
·
a292c9d
1
Parent(s):
8277120
getInitialProps?
Browse files
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 |
}
|