Skip to content

Commit

Permalink
#
Browse files Browse the repository at this point in the history
  • Loading branch information
xvpc committed Sep 16, 2023
1 parent e74b5a3 commit 6100a9f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pages/recipes/[id].tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'

// NextJs
import { GetStaticPropsContext } from 'next'
import { GetStaticPropsContext, GetServerSidePropsContext } from 'next'

// Components
import Layout from '@/components/Layout'
Expand All @@ -19,14 +19,14 @@ export default function InfoPage(props: { data: any }) {
)
}

export async function getStaticPaths(){
return{
paths: [],
fallback: "blocking"
}
}
// export async function getStaticPaths(){
// return{
// paths: [],
// fallback: "blocking"
// }
// }

export async function getStaticProps(context: GetStaticPropsContext){
export async function getServerSideProps(context: GetServerSidePropsContext){
const id = context.params?.id as string;

//
Expand Down

0 comments on commit 6100a9f

Please sign in to comment.