fix: change api to dynamic
This commit is contained in:
		
							parent
							
								
									77b6278853
								
							
						
					
					
						commit
						22d41d7b6c
					
				
							
								
								
									
										5322
									
								
								pnpm-lock.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5322
									
								
								pnpm-lock.yaml
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -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,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,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,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 {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user