We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd35c8c commit fd437abCopy full SHA for fd437ab
app/skybox/[slug]/page.tsx
@@ -12,12 +12,13 @@ export async function generateStaticParams() {
12
return Object.keys(allData).map((slug) => ({ slug }));
13
}
14
15
-interface PageProps {
+export default function SkyboxPage({
16
+ params,
17
+ searchParams,
18
+}: {
19
params: { slug: string };
- searchParams?: { [key: string]: string | string[] | undefined };
-}
-
20
-export default async function SkyboxPage({ params }: PageProps) {
+ searchParams?: Record<string, string | string[] | undefined>;
21
+}) {
22
const dataPath = path.join(process.cwd(), 'public', 'data', `${params.slug}.json`);
23
const skyboxData = JSON.parse(fs.readFileSync(dataPath, 'utf8'));
24
0 commit comments