Spaces:
Sleeping
Sleeping
AI Development Team Claude commited on
Commit ·
adf2769
1
Parent(s): 033cdb2
feat: Add dynamic auth navbar with user profile dropdown
Browse files- Created AuthNavbarItem component that shows:
- Login/Signup buttons when logged out
- User name + dropdown with logout when logged in
- Swizzled Docusaurus Navbar/Content to replace static auth links
- Added authChange event dispatch on login/signup for navbar sync
- Removed alert popups on successful auth (cleaner UX)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -6,6 +6,7 @@ WORKDIR /app
|
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
gcc \
|
| 8 |
g++ \
|
|
|
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
# Copy requirements first to leverage Docker cache
|
|
@@ -22,4 +23,4 @@ COPY . .
|
|
| 22 |
EXPOSE 7860
|
| 23 |
|
| 24 |
# Run the application on port 7860 for HuggingFace Spaces
|
| 25 |
-
CMD ["
|
|
|
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
gcc \
|
| 8 |
g++ \
|
| 9 |
+
libpq-dev \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
# Copy requirements first to leverage Docker cache
|
|
|
|
| 23 |
EXPOSE 7860
|
| 24 |
|
| 25 |
# Run the application on port 7860 for HuggingFace Spaces
|
| 26 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|