Skip to content

Commit 625a82c

Browse files
Apply suggestions from code review
Co-authored-by: Bannon Tanner <[email protected]>
1 parent cf426e3 commit 625a82c

File tree

1 file changed

+3
-3
lines changed
  • src/fragments/start/getting-started/next

1 file changed

+3
-3
lines changed

src/fragments/start/getting-started/next/api.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,16 +376,16 @@ import styles from '../../styles/Home.module.css';
376376

377377
Amplify.configure({ ...awsExports, ssr: true });
378378

379-
export async function getServerSideProps({req, params}) {
380-
const SSR = withSSRContext({req});
379+
export async function getServerSideProps({ req, params }) {
380+
const SSR = withSSRContext({ req });
381381
const { data } = await SSR.API.graphql({
382382
query: getPost,
383383
variables: {
384384
id: params.id
385385
}
386386
});
387387
console.log(data)
388-
return {
388+
return {
389389
props: {
390390
post: data.getPost
391391
}

0 commit comments

Comments
 (0)