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 { isAdmin, isVIP } from "@/_utils/helpers";
|
||||||
import { currentUser } from "@clerk/nextjs";
|
import { currentUser } from "@clerk/nextjs";
|
||||||
|
|
||||||
export const runtime = "edge";
|
|
||||||
|
|
||||||
export default async function Dashboard() {
|
export default async function Dashboard() {
|
||||||
const user = await currentUser();
|
const user = await currentUser();
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
import VoteUI from "@/(client)/room/[id]/VoteUI";
|
import VoteUI from "@/(client)/room/[id]/VoteUI";
|
||||||
|
|
||||||
export const runtime = "edge";
|
|
||||||
|
|
||||||
export default function Room() {
|
export default function Room() {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col items-center justify-center text-center gap-2">
|
<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";
|
import { NextResponse } from "next/server";
|
||||||
|
|
||||||
export const runtime = "edge";
|
|
||||||
|
|
||||||
function handler() {
|
function handler() {
|
||||||
return NextResponse.json(
|
return NextResponse.json(
|
||||||
{ message: "Private Pong!" },
|
{ 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";
|
import { NextResponse } from "next/server";
|
||||||
|
|
||||||
export const runtime = "edge";
|
|
||||||
|
|
||||||
function handler() {
|
function handler() {
|
||||||
return NextResponse.json(
|
return NextResponse.json(
|
||||||
{ message: "Public Pong!" },
|
{ message: "Public Pong!" },
|
||||||
|
|
|
@ -3,8 +3,6 @@ import { env } from "env.mjs";
|
||||||
import { currentUser } from "@clerk/nextjs/server";
|
import { currentUser } from "@clerk/nextjs/server";
|
||||||
import type { AblyTokenResponse } from "@/_utils/types";
|
import type { AblyTokenResponse } from "@/_utils/types";
|
||||||
|
|
||||||
export const runtime = "edge";
|
|
||||||
|
|
||||||
async function handler() {
|
async function handler() {
|
||||||
const user = await currentUser();
|
const user = await currentUser();
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,6 @@ import { getAuth } from "@clerk/nextjs/server";
|
||||||
import { createId } from "@paralleldrive/cuid2";
|
import { createId } from "@paralleldrive/cuid2";
|
||||||
import { eq } from "drizzle-orm";
|
import { eq } from "drizzle-orm";
|
||||||
|
|
||||||
export const runtime = "edge";
|
|
||||||
|
|
||||||
export async function GET(
|
export async function GET(
|
||||||
request: Request,
|
request: Request,
|
||||||
{ params }: { params: { roomId: string } }
|
{ params }: { params: { roomId: string } }
|
||||||
|
|
|
@ -7,8 +7,6 @@ import { publishToChannel } from "@/_lib/ably";
|
||||||
import { EventTypes } from "@/_utils/types";
|
import { EventTypes } from "@/_utils/types";
|
||||||
import { getAuth } from "@clerk/nextjs/server";
|
import { getAuth } from "@clerk/nextjs/server";
|
||||||
|
|
||||||
export const runtime = "edge";
|
|
||||||
|
|
||||||
export async function PUT(
|
export async function PUT(
|
||||||
request: Request,
|
request: Request,
|
||||||
{ params }: { params: { roomId: string } }
|
{ params }: { params: { roomId: string } }
|
||||||
|
|
|
@ -4,8 +4,6 @@ import { db } from "@/_lib/db";
|
||||||
import { votes } from "@/_lib/schema";
|
import { votes } from "@/_lib/schema";
|
||||||
import { eq } from "drizzle-orm";
|
import { eq } from "drizzle-orm";
|
||||||
|
|
||||||
export const runtime = "edge";
|
|
||||||
|
|
||||||
export async function GET(
|
export async function GET(
|
||||||
request: Request,
|
request: Request,
|
||||||
{ params }: { params: { roomId: string } }
|
{ params }: { params: { roomId: string } }
|
||||||
|
|
|
@ -9,8 +9,6 @@ import { publishToChannel } from "@/_lib/ably";
|
||||||
import { EventTypes } from "@/_utils/types";
|
import { EventTypes } from "@/_utils/types";
|
||||||
import { getAuth } from "@clerk/nextjs/server";
|
import { getAuth } from "@clerk/nextjs/server";
|
||||||
|
|
||||||
export const runtime = "edge";
|
|
||||||
|
|
||||||
export async function GET(request: Request) {
|
export async function GET(request: Request) {
|
||||||
const { userId } = getAuth(request as NextRequest);
|
const { userId } = getAuth(request as NextRequest);
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,6 @@ import type { WebhookEvent } from "@clerk/nextjs/server";
|
||||||
import { Webhook } from "svix";
|
import { Webhook } from "svix";
|
||||||
import { env } from "env.mjs";
|
import { env } from "env.mjs";
|
||||||
|
|
||||||
export const runtime = "edge";
|
|
||||||
|
|
||||||
async function handler(req: NextRequest) {
|
async function handler(req: NextRequest) {
|
||||||
// Get the headers
|
// Get the headers
|
||||||
const headerPayload = headers();
|
const headerPayload = headers();
|
||||||
|
|
Loading…
Add table
Reference in a new issue