?
This commit is contained in:
parent
f322b28a58
commit
3810ca0185
4 changed files with 6 additions and 8 deletions
|
@ -8,10 +8,6 @@ import { env } from "@/env.mjs";
|
|||
import { trpc } from "../_trpc/client";
|
||||
import Loading from "./Loading";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
export const revalidate = 0;
|
||||
export const fetchCache = "force-no-store";
|
||||
|
||||
const RoomList = ({ userId }: { userId: string }) => {
|
||||
configureAbly({
|
||||
key: env.NEXT_PUBLIC_ABLY_PUBLIC_KEY,
|
||||
|
|
|
@ -27,10 +27,6 @@ import { trpc } from "@/app/_trpc/client";
|
|||
import Loading from "@/app/_components/Loading";
|
||||
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 params = useParams();
|
||||
const roomId = params?.id as string;
|
||||
|
|
|
@ -6,6 +6,9 @@ import { currentUser } from "@clerk/nextjs";
|
|||
|
||||
export const runtime = "edge";
|
||||
export const preferredRegion = ["pdx1"];
|
||||
export const dynamic = "force-dynamic";
|
||||
export const revalidate = 0;
|
||||
export const fetchCache = "force-no-store";
|
||||
|
||||
export default async function Dashboard() {
|
||||
const user = await currentUser();
|
||||
|
|
|
@ -4,6 +4,9 @@ import VoteUI from "@/app/_components/VoteUI";
|
|||
|
||||
export const runtime = "edge";
|
||||
export const preferredRegion = ["pdx1"];
|
||||
export const dynamic = "force-dynamic";
|
||||
export const revalidate = 0;
|
||||
export const fetchCache = "force-no-store";
|
||||
|
||||
export default async function Room() {
|
||||
const user = await currentUser();
|
||||
|
|
Loading…
Add table
Reference in a new issue