Spaces:
Paused
Paused
matt HOFFNER
commited on
Commit
·
c098e98
1
Parent(s):
3bd5951
hoist
Browse files- src/app/page.jsx +11 -0
- src/app/search/web/page.jsx +0 -10
src/app/page.jsx
CHANGED
|
@@ -22,3 +22,14 @@ export default function Home() {
|
|
| 22 |
</>
|
| 23 |
);
|
| 24 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
</>
|
| 23 |
);
|
| 24 |
}
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
export async function getStaticProps(context) {
|
| 28 |
+
// You can access the query parameters of the request with context.query
|
| 29 |
+
const searchParams = context.query;
|
| 30 |
+
|
| 31 |
+
// TODO: Perform any necessary operations with searchParams
|
| 32 |
+
|
| 33 |
+
// Return searchParams as a prop to your page
|
| 34 |
+
return { props: { searchParams } };
|
| 35 |
+
}
|
src/app/search/web/page.jsx
CHANGED
|
@@ -104,13 +104,3 @@ export default function WebSearchPage({ params, searchParams }) {
|
|
| 104 |
</div>
|
| 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 |
-
|
| 112 |
-
// TODO: Perform any necessary operations with searchParams
|
| 113 |
-
|
| 114 |
-
// Return searchParams as a prop to your page
|
| 115 |
-
return { props: { searchParams } };
|
| 116 |
-
}
|
|
|
|
| 104 |
</div>
|
| 105 |
);
|
| 106 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|