Request fix
CI / ci (push) Canceled after 0s

- Auth.js handlers require NextRequest.
- The wrapper accepted plain Request.
Changed both GET and POST handlers to accept NextRequest.
This commit is contained in:
Stefan Lazic committed 2026-09-04 21:59:44 +01:00
1 parent bc45608023
commit d9a253a974
3 files changed
+7 -4

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ const EXTENSION_MIME_TYPES: Record<string, string> = {
export const MEDIA_MAX_UPLOAD_BYTES = Number(process.env.MEDIA_MAX_UPLOAD_BYTES ?? 5_000_000);
/** Overridable so a non-Docker deployment can point this somewhere else; defaults to a directory next to the app, outside public/. */
const MEDIA_ROOT = path.resolve(process.env.MEDIA_STORAGE_ROOT || path.join(/*turbopackIgnore: true*/ process.cwd(), "storage", "media"));
const MEDIA_ROOT = path.resolve(process.env.MEDIA_STORAGE_ROOT || "storage/media");
export const MEDIA_URL_PREFIX = "/api/media/";