fix: change api to dynamic

This commit is contained in:
blueeon
2024-03-28 22:00:33 +08:00
parent 77b6278853
commit 22d41d7b6c
5 changed files with 5326 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import { NextResponse, NextRequest } from "next/server";
import { sunoApi } from "@/lib/SunoApi";
export const dynamic = "force-dynamic";
export async function POST(req: NextRequest) {
if (req.method === 'POST') {
try {
+1 -1
View File
@@ -1,6 +1,6 @@
import { NextResponse, NextRequest } from "next/server";
import { sunoApi } from "@/lib/SunoApi";
export const dynamic = "force-dynamic";
export async function POST(req: NextRequest) {
if (req.method === 'POST') {
try {
+1
View File
@@ -1,5 +1,6 @@
import { NextResponse, NextRequest } from "next/server";
import { sunoApi } from "@/lib/SunoApi";
export const dynamic = "force-dynamic";
export async function GET(req: NextRequest) {
if (req.method === 'GET') {
+1 -1
View File
@@ -1,6 +1,6 @@
import { NextResponse, NextRequest } from "next/server";
import { sunoApi } from "@/lib/SunoApi";
export const dynamic = "force-dynamic";
export async function GET(req: NextRequest) {
if (req.method === 'GET') {
try {