Refactor image upload handling by moving upload directory outside of public folder for better compatibility with Next.js. Update related Docker configurations and scripts to reflect new upload paths. Replace instances of Next.js Image component with CmsImage for consistent image handling across the application.
This commit is contained in:
1 parent
0a57ef2b80
commit
1641edfd01
19 files changed
+162
-39
No files matched your search
+2
-2
@@ -13,11 +13,11 @@ services:
|
||||
- HOSTNAME=0.0.0.0
|
||||
- NEXT_PUBLIC_SITE_URL=${NEXT_PUBLIC_SITE_URL:-https://edu.mstaut.ir}
|
||||
- DATABASE_URL=${DATABASE_URL:?Set DATABASE_URL in a protected environment file}
|
||||
- UPLOAD_DIR=/app/public/uploads
|
||||
- UPLOAD_DIR=/app/uploads
|
||||
# Nginx Proxy Manager: edu.mstaut.ir → http://aut-management-faculty:3000
|
||||
# DB: same Docker network as container `insaight-postgres` (not the public IP).
|
||||
volumes:
|
||||
- uploads_data:/app/public/uploads
|
||||
- uploads_data:/app/uploads
|
||||
expose:
|
||||
- "3000"
|
||||
networks:
|
||||
|
||||
Reference in new issue
Block a user