This commit is contained in:
GH Action - Upstream Sync 2023-05-26 01:01:36 +00:00
commit cae073a6ba
3 changed files with 9 additions and 5 deletions

View File

@ -41,9 +41,7 @@ COPY --from=builder /app/.next/server ./.next/server
EXPOSE 3000 EXPOSE 3000
CMD if [ -n "$PROXY_URL" ]; then \ CMD if [ -n "$PROXY_URL" ]; then \
if [ -z "$HOSTNAME" ]; then \ export HOSTNAME="127.0.0.1"; \
export HOSTNAME="127.0.0.1" \
fi; \
protocol=$(echo $PROXY_URL | cut -d: -f1); \ protocol=$(echo $PROXY_URL | cut -d: -f1); \
host=$(echo $PROXY_URL | cut -d/ -f3 | cut -d: -f1); \ host=$(echo $PROXY_URL | cut -d/ -f3 | cut -d: -f1); \
port=$(echo $PROXY_URL | cut -d: -f3); \ port=$(echo $PROXY_URL | cut -d: -f3); \

View File

@ -50,7 +50,13 @@ export async function requestOpenai(req: NextRequest) {
if (res.status === 401) { if (res.status === 401) {
// to prevent browser prompt for credentials // to prevent browser prompt for credentials
res.headers.delete("www-authenticate"); const newHeaders = new Headers(res.headers);
newHeaders.delete("www-authenticate");
return new Response(res.body, {
status: res.status,
statusText: res.statusText,
headers: newHeaders,
});
} }
return res; return res;

View File

@ -42,7 +42,7 @@ export function ListItem(props: {
className?: string; className?: string;
}) { }) {
return ( return (
<div className={styles["list-item"] + ` ${props.className}`}> <div className={styles["list-item"] + ` ${props.className || ""}`}>
<div className={styles["list-header"]}> <div className={styles["list-header"]}>
{props.icon && <div className={styles["list-icon"]}>{props.icon}</div>} {props.icon && <div className={styles["list-icon"]}>{props.icon}</div>}
<div className={styles["list-item-title"]}> <div className={styles["list-item-title"]}>