Add test-environment mod authority

This commit is contained in:
Paul Frazee
2024-03-09 13:25:22 -08:00
parent 8862c1f540
commit 185c3d6ee1
6 changed files with 39 additions and 46 deletions
+4
View File
@@ -35,6 +35,10 @@ export const MAX_GRAPHEME_LENGTH = 300
// but increasing limit per user feedback
export const MAX_ALT_TEXT = 1000
export function IS_TEST_USER(handle?: string) {
return handle && handle?.endsWith('.test')
}
export function IS_PROD_SERVICE(url?: string) {
return url && url !== STAGING_SERVICE && url !== LOCAL_DEV_SERVICE
}