fix: serve uploads via route handler instead of public/ (standalone 404 fix)
All checks were successful
Deploy / build-and-deploy (push) Successful in 1m49s

This commit is contained in:
2026-06-15 03:34:11 +03:00
parent 3f41d7699c
commit cfcfa0ccee
7 changed files with 55 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ COPY --from=builder /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
RUN mkdir -p /app/data /app/public/uploads && chmod 777 /app/data /app/public/uploads
RUN mkdir -p /app/data /app/data/uploads && chmod 777 /app/data /app/data/uploads
USER nextjs