-
Notifications
You must be signed in to change notification settings - Fork 9
/
config.ts
48 lines (43 loc) · 1.25 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { serpingApiConfig } from "serping/types";
const regions = ["us-east-1"] as const;
const locales = ['en', 'es', 'de', 'fr', 'it', 'nl', 'pl', 'pt', 'sv', 'tr', 'ru', 'zh', 'ja', "ko"] as const;
const defaultLocale = "en" as const;
const devices = ["desktop", "mobile"] as const;
export type RegionType = typeof regions[number];
export type LocaleType = typeof locales[number];
export type DeviceType = typeof devices[number];
export type SerpingApiType = Record<RegionType, serpingApiConfig>
const serpingApi: Record<RegionType, { apiKey: string; }> = {
"us-east-1": {
apiKey: process.env.SERPING_US_EAST_1_API_KEY!
}
}
export const appConfig = {
appDomain: "serpchecking.com",
appName: "SERP Checking",
appDescription: "SERP Checking",
gaId: process.env.NEXT_PUBLIC_GA_ID,
i18n: {
locales,
defaultLocale,
labels: {
"de": "Deutsch",
"en": "English",
"es": "Español",
"fr": "Français",
"it": "Italian",
"pt": "Português",
"nl": "Nederlands",
"pl": "Polski",
"sv": "Svenska",
"tr": "Türkçe",
"ru": "Русский",
"ja": "日本語",
"zh": "中文",
"ko": "한국어"
} as Record<LocaleType, string>
},
regions,
devices,
serpingApi
}