From 8233de7c5355f502eb335d00682c42e2f8dde456 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 2 Feb 2022 12:31:45 +0100 Subject: fix: handle getStaticPaths fallback I had errors with next build because of fallback. I need to return early if the path does not exists, if not Next complains about undefined variables. I don't think it was related but I also fix the paths format in getStaticPaths, I forgot the params object in some dynamic routes. --- src/ts/types/app.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ts/types') diff --git a/src/ts/types/app.ts b/src/ts/types/app.ts index 636aeed..2c9a291 100644 --- a/src/ts/types/app.ts +++ b/src/ts/types/app.ts @@ -100,6 +100,10 @@ export type PageInfo = { total: number; }; +export type ParamsSlug = { + params: { slug: string }; +}; + export type Project = { cover?: string; id: string; -- cgit v1.2.3