Inject CSS before </head> and simplify title replacement

This commit is contained in:
Nathan Schneider committed 2026-10-18 21:16:39 -06:00
1 parent be78979792
commit 20be88f6e7
1 file changed
+2 -4
+2 -4
View File
@@ -34,7 +34,5 @@ COPY assets/custom.css /app/code/librechat/client/dist/assets/custom.css
# Insert the CSS link after the title tag
RUN sed -i '/<title>Inference Co-op<\/title>/a <link rel="stylesheet" href="assets/custom.css">' /app/code/librechat/client/dist/index.html
# Browser-tab title (index.html is baked at build; sed no-ops harmlessly if
# the upstream markup ever changes)
RUN sed -i 's|<title>LibreChat</title>|<title>Inference Co-op</title>|' /app/code/librechat/client/dist/index.html && \
sed -i '/<title>Inference Co-op<\/title>/a <link rel="stylesheet" href="assets/custom.css">' /app/code/librechat/client/dist/index.html
# Insert custom CSS link before closing </head>
RUN sed -i '/<\/head>/i <link rel="stylesheet" href="assets/custom.css">' /app/code/librechat/client/dist/index.html