Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: ssg reproducer #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"use client"


type Props = { }


export default function ItemViewModal({}: Props) {

return null
}

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default function CatchAll() {
return <div>Catch all</div>;
}
return null
}
4 changes: 4 additions & 0 deletions app/@takeoverModal/default.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// eslint-disable-next-line import/no-unused-modules
export default function Default() {
return null
}
3 changes: 0 additions & 3 deletions app/[locale]/[persona]/@authModal/(.)discover/page.tsx

This file was deleted.

25 changes: 0 additions & 25 deletions app/[locale]/[persona]/compound/page.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions app/[locale]/[persona]/discover/page.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions app/[locale]/[persona]/headers/page.tsx

This file was deleted.

37 changes: 0 additions & 37 deletions app/[locale]/[persona]/layout.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions app/[locale]/[persona]/my-page/[parameter]/page.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions app/[locale]/[persona]/page.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions app/[locale]/layout.tsx

This file was deleted.

19 changes: 19 additions & 0 deletions app/[test]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
type Props = {
params: Promise<{ test: string }>;
};

export default async function Page({ params }: Props) {
const { test } = await params;
return <div>Hello {test}</div>;
}

export function generateStaticParams() {
return [
{ test: "a" },
{ test: "b" },
{ test: "c" },
{ test: "d" },
{ test: "e" },
{ test: "f" },
];
}
17 changes: 17 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import type { ReactNode } from "react";

type Props = {
children: ReactNode;
takeoverModal: React.ReactNode;
};

export default function Layout({ children, takeoverModal }: Props) {
return (
<html lang="en">
<body>
{children}
{takeoverModal}
</body>
</html>
);
}
5 changes: 0 additions & 5 deletions instrumentation.ts

This file was deleted.

21 changes: 0 additions & 21 deletions middleware.ts

This file was deleted.

1 change: 0 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
instrumentationHook: true,
optimizePackageImports: ["@opensea/ui-kit"],
},
};
Expand Down
Loading