Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🐛 Use correct syntax for server-only (#1830)

Luke Vellab4cbb629b709
diff --git a/apps/web/src/features/instance-settings/queries.ts b/apps/web/src/features/instance-settings/queries.ts
index 727599613..1bc716bf2 100644
--- a/apps/web/src/features/instance-settings/queries.ts
+++ b/apps/web/src/features/instance-settings/queries.ts
@@ -1,4 +1,5 @@
-"server-only";
+import "server-only";
+
import { prisma } from "@rallly/database";
import { unstable_cache } from "next/cache";
import { instanceSettingsTag } from "./constants";
diff --git a/apps/web/src/features/rate-limit/index.ts b/apps/web/src/features/rate-limit/index.ts
index f37d178f2..4c3ba4231 100644
--- a/apps/web/src/features/rate-limit/index.ts
+++ b/apps/web/src/features/rate-limit/index.ts
@@ -1,4 +1,4 @@
-"server-only";
+import "server-only";
import { Ratelimit } from "@upstash/ratelimit";
import { kv } from "@vercel/kv";
diff --git a/apps/web/src/features/safe-action/server.ts b/apps/web/src/features/safe-action/server.ts
index 76a696b56..5719db68a 100644
--- a/apps/web/src/features/safe-action/server.ts
+++ b/apps/web/src/features/safe-action/server.ts
@@ -1,4 +1,5 @@
-"server-only";
+import "server-only";
+
import { posthog } from "@rallly/posthog/server";
import { waitUntil } from "@vercel/functions";
import { revalidatePath } from "next/cache";