Node
This commit is contained in:
parent
af3aa4298b
commit
b349cc69c4
10 changed files with 0 additions and 20 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
|
2
app/api/external/private/ping/route.ts
vendored
2
app/api/external/private/ping/route.ts
vendored
|
@ -1,7 +1,5 @@
|
|||
import { NextResponse } from "next/server";
|
||||
|
||||
export const runtime = "edge";
|
||||
|
||||
function handler() {
|
||||
return NextResponse.json(
|
||||
{ message: "Private Pong!" },
|
||||
|
|
2
app/api/external/public/ping/route.ts
vendored
2
app/api/external/public/ping/route.ts
vendored
|
@ -1,7 +1,5 @@
|
|||
import { NextResponse } from "next/server";
|
||||
|
||||
export const runtime = "edge";
|
||||
|
||||
function handler() {
|
||||
return NextResponse.json(
|
||||
{ message: "Public Pong!" },
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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 } }
|
||||
|
|
|
@ -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 } }
|
||||
|
|
|
@ -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 } }
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue