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:
parent
8bfe8652e9
commit
4191aeabd6
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue