Merged in SW-3490-set-metadata-for-routes (pull request #2881)
SW-3490 set metadata for routes * feat(SW-3490): Set metadata title for hotelreservation paths Approved-by: Anton Gunnarsson
This commit is contained in:
11
apps/partner-sas/util/metadata/getTitlePrfiex.ts
Normal file
11
apps/partner-sas/util/metadata/getTitlePrfiex.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { env } from "@/env/server"
|
||||
|
||||
export function getTitlePrefix() {
|
||||
if (env.SENTRY_ENVIRONMENT === "production") {
|
||||
return ""
|
||||
}
|
||||
const environmentShortName =
|
||||
env.SENTRY_ENVIRONMENT === "development" ? "local" : env.SENTRY_ENVIRONMENT
|
||||
|
||||
return `${environmentShortName}`
|
||||
}
|
||||
Reference in New Issue
Block a user