Update Next.js type imports and enhance API base URL retrieval logic. Change route type import path for development and improve API base URL function to prioritize environment variable, fallback to window location, and use a default URL.
Add Docker support with .dockerignore and Dockerfile updates. Integrate Next.js frontend build process, including package.json and related configurations. Enhance API to serve static frontend files and update README for project clarity. Add course and document metadata structures for improved content management.
Add Next.js frontend with chat functionality, including components for chat messages, source panels, and markdown rendering. Update README with setup instructions and enhance .gitignore for frontend build artifacts.