This commit is contained in:
Atridad Lahiji 2023-09-05 18:16:28 -06:00
parent f322b28a58
commit 3810ca0185
No known key found for this signature in database
4 changed files with 6 additions and 8 deletions

View file

@ -8,10 +8,6 @@ import { env } from "@/env.mjs";
import { trpc } from "../_trpc/client"; import { trpc } from "../_trpc/client";
import Loading from "./Loading"; import Loading from "./Loading";
export const dynamic = "force-dynamic";
export const revalidate = 0;
export const fetchCache = "force-no-store";
const RoomList = ({ userId }: { userId: string }) => { const RoomList = ({ userId }: { userId: string }) => {
configureAbly({ configureAbly({
key: env.NEXT_PUBLIC_ABLY_PUBLIC_KEY, key: env.NEXT_PUBLIC_ABLY_PUBLIC_KEY,

View file

@ -27,10 +27,6 @@ import { trpc } from "@/app/_trpc/client";
import Loading from "@/app/_components/Loading"; import Loading from "@/app/_components/Loading";
import { User } from "@clerk/nextjs/dist/types/server"; import { User } from "@clerk/nextjs/dist/types/server";
export const dynamic = "force-dynamic";
export const revalidate = 0;
export const fetchCache = "force-no-store";
const VoteUI = ({ user }: { user: Partial<User> }) => { const VoteUI = ({ user }: { user: Partial<User> }) => {
const params = useParams(); const params = useParams();
const roomId = params?.id as string; const roomId = params?.id as string;

View file

@ -6,6 +6,9 @@ import { currentUser } from "@clerk/nextjs";
export const runtime = "edge"; export const runtime = "edge";
export const preferredRegion = ["pdx1"]; export const preferredRegion = ["pdx1"];
export const dynamic = "force-dynamic";
export const revalidate = 0;
export const fetchCache = "force-no-store";
export default async function Dashboard() { export default async function Dashboard() {
const user = await currentUser(); const user = await currentUser();

View file

@ -4,6 +4,9 @@ import VoteUI from "@/app/_components/VoteUI";
export const runtime = "edge"; export const runtime = "edge";
export const preferredRegion = ["pdx1"]; export const preferredRegion = ["pdx1"];
export const dynamic = "force-dynamic";
export const revalidate = 0;
export const fetchCache = "force-no-store";
export default async function Room() { export default async function Room() {
const user = await currentUser(); const user = await currentUser();