fixed docker

This commit is contained in:
2026-02-04 15:37:59 +00:00
parent 6d271ef65b
commit 025ce8f763
16 changed files with 135 additions and 93 deletions

View File

@@ -1,7 +1,7 @@
import { Checkout } from "@polar-sh/nextjs";
import { NextResponse } from "next/server";
import { NextRequest, NextResponse } from "next/server";
export const GET = async () => {
export const GET = async (request: NextRequest) => {
if (!process.env.POLAR_ACCESS_TOKEN || !process.env.POLAR_SUCCESS_URL) {
return NextResponse.json(
{
@@ -17,5 +17,5 @@ export const GET = async () => {
successUrl: process.env.POLAR_SUCCESS_URL,
});
return handler();
return handler(request);
};