Merged in fix/common-package-fix (pull request #2355)

fix: Tiny fixes in common package

* Fix self-referencing and circular imports

* Fix env isServer


Approved-by: Joakim Jäderberg
This commit is contained in:
Anton Gunnarsson
2025-06-13 11:36:40 +00:00
parent e3d6437af2
commit e1ede52014
5 changed files with 10 additions and 12 deletions

View File

@@ -1,12 +1,12 @@
import * as Sentry from "@sentry/nextjs"
import { safeTry } from "@scandic-hotels/common/utils/safeTry"
import { env } from "../../env/server"
import { safeTry } from "../../utils/safeTry"
import { cacheLogger } from "../logger"
import { API_KEY } from "./client"
import { deleteKey } from "./deleteKey"
import { getCacheEndpoint } from "./endpoints"
const API_KEY = env.REDIS_API_KEY ?? ""
export async function get<T>(key: string) {
const perf = performance.now()