Update container name and stricter types for linking

Signed-off-by: Martin Berg Alstad <git@martials.no>
This commit is contained in:
Martin Berg Alstad 2024-10-20 11:01:54 +02:00
parent b8e77b2a54
commit 32f4c6aaf0
Signed by: martials
GPG Key ID: DF629A90917D1319
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
services:
web:
container_name: martials.no
restart: always
build:
context: .

View File

@ -3,18 +3,18 @@ import type { AbsolutePathname } from "@/types/types.ts"
interface TranslatedPathnames {
nb: AbsolutePathname
en: `/en${string}`
en: `/en${AbsolutePathname}`
}
export type NavLink = "/" | "/contact" | "/projects" | "/links" | "/hardware"
const paths: NavLink[] = [
const paths: Set<NavLink> = new Set([
"/",
"/contact",
"/projects",
"/links",
"/hardware"
]
])
/**
* Defines the localized pathnames for the site.