Enhance image upload functionality for admin and improve course navigation. Added support for image uploads in course forms and generic forms, utilizing a new ImageUploadField component. Updated navigation to dynamically include course tags and refined layout components for better user experience. Configured Docker for persistent uploads with a dedicated volume.
This commit is contained in:
1 parent
ef1ccea0ad
commit
66a8e8f213
29 files changed
+748
-125
No files matched your search
@@ -18,6 +18,9 @@ COPY --chown=nextjs:nodejs . ./
|
||||
# Next warns/breaks if a legacy root-level ./static exists alongside ./public
|
||||
RUN rm -rf ./static
|
||||
|
||||
# Writable dir for admin image uploads (mount a volume in compose for persistence)
|
||||
RUN mkdir -p ./public/uploads && chown -R nextjs:nodejs ./public/uploads
|
||||
|
||||
USER nextjs
|
||||
EXPOSE 3000
|
||||
CMD ["node", "server.js"]
|
||||
Reference in new issue
Block a user