fix: change api to dynamic

This commit is contained in:
blueeon 2024-03-28 21:59:40 +08:00
parent 77b6278853
commit 22d41d7b6c
5 changed files with 5326 additions and 3 deletions

5322
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
import { NextResponse, NextRequest } from "next/server"; import { NextResponse, NextRequest } from "next/server";
import { sunoApi } from "@/lib/SunoApi"; import { sunoApi } from "@/lib/SunoApi";
export const dynamic = "force-dynamic";
export async function POST(req: NextRequest) { export async function POST(req: NextRequest) {
if (req.method === 'POST') { if (req.method === 'POST') {
try { try {

View File

@ -1,6 +1,6 @@
import { NextResponse, NextRequest } from "next/server"; import { NextResponse, NextRequest } from "next/server";
import { sunoApi } from "@/lib/SunoApi"; import { sunoApi } from "@/lib/SunoApi";
export const dynamic = "force-dynamic";
export async function POST(req: NextRequest) { export async function POST(req: NextRequest) {
if (req.method === 'POST') { if (req.method === 'POST') {
try { try {

View File

@ -1,5 +1,6 @@
import { NextResponse, NextRequest } from "next/server"; import { NextResponse, NextRequest } from "next/server";
import { sunoApi } from "@/lib/SunoApi"; import { sunoApi } from "@/lib/SunoApi";
export const dynamic = "force-dynamic";
export async function GET(req: NextRequest) { export async function GET(req: NextRequest) {
if (req.method === 'GET') { if (req.method === 'GET') {

View File

@ -1,6 +1,6 @@
import { NextResponse, NextRequest } from "next/server"; import { NextResponse, NextRequest } from "next/server";
import { sunoApi } from "@/lib/SunoApi"; import { sunoApi } from "@/lib/SunoApi";
export const dynamic = "force-dynamic";
export async function GET(req: NextRequest) { export async function GET(req: NextRequest) {
if (req.method === 'GET') { if (req.method === 'GET') {
try { try {