No badges yet
No accepted solutions yet
How can I use tmp directory
Hello, Once I got a log "File saved successfully at: /tmp/final_results.json" But When I try to reopen it next step, it made an error. To use vercel's tmp directory, do I need to...
Api files directory on next.js 14
Hello pawlean, Thank you for your reply! But it is client component, so I believe I can't use header function here, can I?
After sending a POST request to another backend server, it takes a long time to receive the response. Is there a way to solve this?
Hello neerajkumar! Depends on the pdf file which is sent from client to flask server, It is almost 5minutes. Which means that the vercel should not detect it is an error for...
Api files directory on next.js 14
useEffect(() => { const fetchAnalysisData = async () => { console.log("Starting to fetch analysis data..."); const response = await fetch("/api/get-final-result"); try {
After sending a POST request to another backend server, it takes a long time to receive the response. Is there a way to solve this?
console.log( "Flask server URL:", process.env.NEXT_PUBLIC_FLASK_REDIRECT_URL ); const response = await fetch( `${process.env.NEXT_PUBLIC_FLASK_REDIRECT_URL!}