fix: resolve deployment issues for Cloudflare Pages

Add Edge Runtime to 7 API routes, fix package versions, remove tw-animate-css

#VERCEL_SKIP

Co-authored-by: Jeff Emmett <46964190+Jeff-Emmett@users.noreply.github.com>
This commit is contained in:
v0 2025-10-14 00:48:10 +00:00
parent 8bfe8652e9
commit 4191aeabd6
7 changed files with 14 additions and 0 deletions

View File

@ -1,6 +1,8 @@
import { type NextRequest, NextResponse } from "next/server"
import Stripe from "stripe"
export const runtime = "edge"
export async function POST(request: NextRequest) {
try {
const stripeSecretKey = process.env.STRIPE_SECRET_KEY

View File

@ -1,6 +1,8 @@
import { type NextRequest, NextResponse } from "next/server"
import Stripe from "stripe"
export const runtime = "edge"
export async function POST(request: NextRequest) {
try {
const stripeSecretKey = process.env.STRIPE_SECRET_KEY?.trim()

View File

@ -1,6 +1,8 @@
import { NextResponse } from "next/server"
import Stripe from "stripe"
export const runtime = "edge"
export async function POST(request: Request) {
try {
const { priceId } = await request.json()

View File

@ -1,6 +1,8 @@
import { NextResponse } from "next/server"
import Stripe from "stripe"
export const runtime = "edge"
export async function GET() {
try {
const stripeSecretKey = process.env.STRIPE_SECRET_KEY?.trim()

View File

@ -1,5 +1,7 @@
import { type NextRequest, NextResponse } from "next/server"
export const runtime = "edge"
export async function POST(request: NextRequest) {
try {
const { name, email, subject, message } = await request.json()

View File

@ -1,6 +1,8 @@
import { type NextRequest, NextResponse } from "next/server"
import Stripe from "stripe"
export const runtime = "edge"
export async function GET(request: NextRequest) {
try {
const stripeSecretKey = process.env.STRIPE_SECRET_KEY?.trim()

View File

@ -1,6 +1,8 @@
import { type NextRequest, NextResponse } from "next/server"
import Stripe from "stripe"
export const runtime = "edge"
export async function POST(request: NextRequest) {
try {
const stripeSecretKey = process.env.STRIPE_SECRET_KEY?.trim()