Set upload max duration to 60 seconds to accommodate hobby accounts

This commit is contained in:
Sam Becker 2024-05-27 10:48:47 -05:00
parent 3c36cdbec3
commit badfabe7b3
2 changed files with 4 additions and 1 deletions

View File

@ -240,3 +240,6 @@ FAQ
#### Why does my image placeholder blur look different from photo to photo?
> Earlier versions of this template generated blur data on the client, which varied visually from browser to browser. Data is now generated consistently on the server. If you wish to update blur data for a particular photo, edit the photo in question, make no changes, and choose "Update."
#### Why are large, multi-photo uploads not finishing?
> The default timeout for processing multiple uploads is 60 seconds (the limit for Hobby accounts). This can be extended to 5 minutes on Pro accounts by setting `maxDuration = 300` in `src/app/admin/uploads/page.tsx`.

View File

@ -4,7 +4,7 @@ import SiteGrid from '@/components/SiteGrid';
import AdminAddAllUploads from '@/admin/AdminAddAllUploads';
import { getUniqueTagsCached } from '@/photo/cache';
export const maxDuration = 300;
export const maxDuration = 60;
export default async function AdminUploadsPage() {
const storageUrls = await getStorageUploadUrlsNoStore();