summaryrefslogtreecommitdiffstats
path: root/src/ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-02 12:31:45 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-02 12:31:45 +0100
commit8233de7c5355f502eb335d00682c42e2f8dde456 (patch)
treef7988b8967a0ce53e20c3dabd08c7f3c37bdbf1d /src/ts
parent248d5dc99aad62bfeab45271d7b2ba0a78e8f6a6 (diff)
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.
Diffstat (limited to 'src/ts')
-rw-r--r--src/ts/types/app.ts4
1 files changed, 4 insertions, 0 deletions
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;