index/config.ts

39 lines
843 B
TypeScript
Raw Normal View History

2024-01-27 18:17:30 +02:00
import packageJSON from './package.json'
interface TitleConfig {
full: string
short: string
}
interface BuildConfig {
date?: string
version: string
}
type config = {
url: string
2024-02-18 10:30:50 +02:00
shortener: string
2024-01-27 18:17:30 +02:00
name: string
title: TitleConfig
description: string
locale: string
build: BuildConfig
}
export default {
url: 'https://enderman.ch',
2024-02-18 10:30:50 +02:00
shortener: 'https://go.enderman.ch',
2024-01-27 18:17:30 +02:00
name: packageJSON.name || 'app',
title: {
full: "Enderman's Website",
short: 'Enderman',
},
description:
'A software engineer, a malware enthusiast and, most importantly, a weird tall creature. I have over 300K subscribers on YouTube and over 20K followers on Twitter.',
locale: 'en',
build: {
date: new Date().toISOString().split('T')[0],
version: packageJSON.version || '0.0.0',
},
} satisfies config as config