Adding some methods in order to support the serving files images dynamically in production.

This commit is contained in:
charles-gauthereau
2025-01-12 14:03:15 +01:00
parent 2440592286
commit 7a59c616eb
5 changed files with 40 additions and 5 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ export async function GET(
const expires = searchParams.get('expires');
const fileName = (await params).fileName
const privateLocalDir = "private/uploads/";
const privateLocalDir = "private/uploads/files/";
const filePath = path.join(privateLocalDir, fileName);
const crypto = require('crypto');