This commit is contained in:
Atridad Lahiji 2023-11-17 00:39:00 -07:00
parent af3aa4298b
commit b349cc69c4
No known key found for this signature in database
10 changed files with 0 additions and 20 deletions

View file

@ -4,8 +4,6 @@ import { GiStarFormation } from "react-icons/gi";
import { isAdmin, isVIP } from "@/_utils/helpers";
import { currentUser } from "@clerk/nextjs";
export const runtime = "edge";
export default async function Dashboard() {
const user = await currentUser();

View file

@ -1,7 +1,5 @@
import VoteUI from "@/(client)/room/[id]/VoteUI";
export const runtime = "edge";
export default function Room() {
return (
<div className="flex flex-col items-center justify-center text-center gap-2">

View file

@ -1,7 +1,5 @@
import { NextResponse } from "next/server";
export const runtime = "edge";
function handler() {
return NextResponse.json(
{ message: "Private Pong!" },

View file

@ -1,7 +1,5 @@
import { NextResponse } from "next/server";
export const runtime = "edge";
function handler() {
return NextResponse.json(
{ message: "Public Pong!" },

View file

@ -3,8 +3,6 @@ import { env } from "env.mjs";
import { currentUser } from "@clerk/nextjs/server";
import type { AblyTokenResponse } from "@/_utils/types";
export const runtime = "edge";
async function handler() {
const user = await currentUser();

View file

@ -9,8 +9,6 @@ import { getAuth } from "@clerk/nextjs/server";
import { createId } from "@paralleldrive/cuid2";
import { eq } from "drizzle-orm";
export const runtime = "edge";
export async function GET(
request: Request,
{ params }: { params: { roomId: string } }

View file

@ -7,8 +7,6 @@ import { publishToChannel } from "@/_lib/ably";
import { EventTypes } from "@/_utils/types";
import { getAuth } from "@clerk/nextjs/server";
export const runtime = "edge";
export async function PUT(
request: Request,
{ params }: { params: { roomId: string } }

View file

@ -4,8 +4,6 @@ import { db } from "@/_lib/db";
import { votes } from "@/_lib/schema";
import { eq } from "drizzle-orm";
export const runtime = "edge";
export async function GET(
request: Request,
{ params }: { params: { roomId: string } }

View file

@ -9,8 +9,6 @@ import { publishToChannel } from "@/_lib/ably";
import { EventTypes } from "@/_utils/types";
import { getAuth } from "@clerk/nextjs/server";
export const runtime = "edge";
export async function GET(request: Request) {
const { userId } = getAuth(request as NextRequest);

View file

@ -9,8 +9,6 @@ import type { WebhookEvent } from "@clerk/nextjs/server";
import { Webhook } from "svix";
import { env } from "env.mjs";
export const runtime = "edge";
async function handler(req: NextRequest) {
// Get the headers
const headerPayload = headers();