|
1 | | -export const INSTANT_SEARCH_INDEX_NAME = "nodes_index"; |
2 | | -export const INSTANT_SEARCH_QUERY_SUGGESTIONS = "nodes_index_query_suggestions"; |
| 1 | +export const INSTANT_SEARCH_INDEX_NAME = 'nodes_index' |
| 2 | +export const INSTANT_SEARCH_QUERY_SUGGESTIONS = 'nodes_index_query_suggestions' |
3 | 3 | export const INSTANT_SEARCH_HIERARCHICAL_ATTRIBUTES = [ |
4 | | - "hierarchicalCategories.lvl0", |
5 | | - "hierarchicalCategories.lvl1", |
6 | | -]; |
| 4 | + 'hierarchicalCategories.lvl0', |
| 5 | + 'hierarchicalCategories.lvl1', |
| 6 | +] |
7 | 7 |
|
8 | | -export const UNCLAIMED_ADMIN_PUBLISHER_ID = "admin-11338bd3-f081-43cf-b3f9-295c829826f7"; // copy from https://github.com/Comfy-Org/comfy-api/blob/main/db/publisher.go#L13 |
| 8 | +export const UNCLAIMED_ADMIN_PUBLISHER_ID = |
| 9 | + 'admin-11338bd3-f081-43cf-b3f9-295c829826f7' // copy from https://github.com/Comfy-Org/comfy-api/blob/main/db/publisher.go#L13 |
9 | 10 |
|
10 | 11 | // Storage key for language preference |
11 | | -export const LANGUAGE_STORAGE_KEY = "comfy-registry-language-preference" as const; |
| 12 | +export const LANGUAGE_STORAGE_KEY = |
| 13 | + 'comfy-registry-language-preference' as const |
12 | 14 |
|
13 | 15 | // Language configuration |
14 | | -export const DEFAULT_LANGUAGE = "en"; |
| 16 | +export const DEFAULT_LANGUAGE = 'en' |
15 | 17 |
|
16 | 18 | const LANGUAGE_NAMES = { |
17 | | - en: "English", |
18 | | - zh: "中文", |
19 | | - ja: "日本語", |
20 | | - fr: "Français", |
21 | | - es: "Español", |
22 | | - ko: "한국어", |
23 | | - ru: "Русский", |
24 | | - ar: "العربية", |
25 | | - tr: "Türkçe", |
26 | | -}; |
| 19 | + en: 'English', |
| 20 | + zh: '中文', |
| 21 | + ja: '日本語', |
| 22 | + fr: 'Français', |
| 23 | + es: 'Español', |
| 24 | + ko: '한국어', |
| 25 | + ru: 'Русский', |
| 26 | + ar: 'العربية', |
| 27 | + tr: 'Türkçe', |
| 28 | +} |
27 | 29 |
|
28 | 30 | export const SUPPORTED_LANGUAGES = Object.keys(LANGUAGE_NAMES) as Array< |
29 | 31 | keyof typeof LANGUAGE_NAMES |
30 | | ->; |
31 | | -export type SupportedLanguage = (typeof SUPPORTED_LANGUAGES)[number]; |
| 32 | +> |
| 33 | +export type SupportedLanguage = (typeof SUPPORTED_LANGUAGES)[number] |
32 | 34 |
|
33 | 35 | // HTTP Cache Control Headers |
34 | 36 | export const NO_CACHE_HEADERS = { |
35 | | - "Cache-Control": "no-cache, no-store, must-revalidate", |
36 | | - Pragma: "no-cache", |
37 | | - Expires: "0", |
38 | | -} as const; |
| 37 | + 'Cache-Control': 'no-cache, no-store, must-revalidate', |
| 38 | + Pragma: 'no-cache', |
| 39 | + Expires: '0', |
| 40 | +} as const |
39 | 41 |
|
40 | 42 | // Type for request options with no-cache headers |
41 | 43 | export const REQUEST_OPTIONS_NO_CACHE = { |
42 | 44 | headers: NO_CACHE_HEADERS, |
43 | | -} as const; |
| 45 | +} as const |
| 46 | + |
| 47 | +export const SITE_URL = |
| 48 | + process.env.NEXT_PUBLIC_SITE_URL || 'https://registry.comfy.org' |
0 commit comments