Update container name and stricter types for linking
Signed-off-by: Martin Berg Alstad <git@martials.no>
This commit is contained in:
parent
b8e77b2a54
commit
32f4c6aaf0
@ -1,5 +1,6 @@
|
||||
services:
|
||||
web:
|
||||
container_name: martials.no
|
||||
restart: always
|
||||
build:
|
||||
context: .
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user