File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
import fs from 'fs' ;
2
2
import path from 'path' ;
3
- import Image from 'next/image' ;
4
3
import SunParams from '@/app/ui/sunparameters' ;
5
4
import FogParams from '@/app/ui/fogparameters' ;
6
5
import MapList from '@/app/ui/maplist' ;
@@ -13,7 +12,12 @@ export async function generateStaticParams() {
13
12
return Object . keys ( allData ) . map ( ( slug ) => ( { slug } ) ) ;
14
13
}
15
14
16
- export default async function SkyboxPage ( { params } : { params : { slug : string } } ) {
15
+ interface PageProps {
16
+ params : { slug : string } ;
17
+ searchParams ?: { [ key : string ] : string | string [ ] | undefined } ;
18
+ }
19
+
20
+ export default async function SkyboxPage ( { params } : PageProps ) {
17
21
const dataPath = path . join ( process . cwd ( ) , 'public' , 'data' , `${ params . slug } .json` ) ;
18
22
const skyboxData = JSON . parse ( fs . readFileSync ( dataPath , 'utf8' ) ) ;
19
23
You can’t perform that action at this time.
0 commit comments