Merge branch 'dev'
This commit is contained in:
commit
ec6eb1f2a4
4 changed files with 6 additions and 8 deletions
|
@ -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,
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue