Skip to content

Commit 6bb67c2

Browse files
committed
Changes
1 parent 4a14e61 commit 6bb67c2

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

pages/index.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ export function Card ({ title, icon, children, style }) {
9090
)
9191
}
9292

93-
export default function Home() {
93+
export default function Home({ headers }) {
94+
console.log({headers});
9495
const [modal, setModal] = useState(false);
9596
const handleFormEnter = () => {
9697
if (regex.test(email) && !loading) {
@@ -195,3 +196,14 @@ export default function Home() {
195196
</>
196197
)
197198
}
199+
200+
export function getServerSideProps(context) {
201+
const { req } = context;
202+
const { headers } = req;
203+
204+
return {
205+
props: {
206+
headers
207+
},
208+
}
209+
}

0 commit comments

Comments
 (0)