mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
revert and fix (please work)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { auth } from "@opencut/auth/server";
|
import { auth } from "@opencut/auth";
|
||||||
import { toNextJsHandler } from "better-auth/next-js";
|
import { toNextJsHandler } from "better-auth/next-js";
|
||||||
|
|
||||||
export const { POST, GET } = toNextJsHandler(auth);
|
export const { POST, GET } = toNextJsHandler(auth);
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
import { NextRequest, NextResponse } from "next/server";
|
import { NextRequest, NextResponse } from "next/server";
|
||||||
import { db, eq } from "@opencut/db";
|
import { db, eq, waitlist } from "@opencut/db";
|
||||||
import { waitlist } from "@opencut/db/schema";
|
|
||||||
import { checkBotId } from "botid/server";
|
import { checkBotId } from "botid/server";
|
||||||
import { nanoid } from "nanoid";
|
import { nanoid } from "nanoid";
|
||||||
import { waitlistRateLimit } from "@/lib/rate-limit";
|
import { waitlistRateLimit } from "@/lib/rate-limit";
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { db, sql } from "@opencut/db";
|
import { db, sql, waitlist } from "@opencut/db";
|
||||||
import { waitlist } from "@opencut/db/schema";
|
|
||||||
|
|
||||||
export async function getWaitlistCount() {
|
export async function getWaitlistCount() {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "bundler",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
|
|||||||
Reference in New Issue
Block a user