Skip to content

Commit

Permalink
test blog
Browse files Browse the repository at this point in the history
  • Loading branch information
soohoonc committed Aug 12, 2024
1 parent e481a22 commit 353abae
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/app/b/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
export const dynamicParams = false

export function generateStaticParams() {
// const pages = [
// 'test'
// ]
// return pages.map(page => ({
// slug: page
// }))
return [{ slug: 'test' }]
}

interface BlogPageProps {
params: {
slug: string
}
}

const Page = ({ params }: BlogPageProps) => {
const { slug } = params
return (
<div>
<h2>{slug}</h2>
</div>
)
}

export default Page
11 changes: 11 additions & 0 deletions src/app/b/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@


const Page = () => {
return (
<div>
<h2>blogs</h2>
</div>
)
}

export default Page

0 comments on commit 353abae

Please sign in to comment.