mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-04 00:56:40 +08:00
Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web
This commit is contained in:
commit
cae073a6ba
@ -41,9 +41,7 @@ COPY --from=builder /app/.next/server ./.next/server
|
||||
EXPOSE 3000
|
||||
|
||||
CMD if [ -n "$PROXY_URL" ]; then \
|
||||
if [ -z "$HOSTNAME" ]; then \
|
||||
export HOSTNAME="127.0.0.1" \
|
||||
fi; \
|
||||
export HOSTNAME="127.0.0.1"; \
|
||||
protocol=$(echo $PROXY_URL | cut -d: -f1); \
|
||||
host=$(echo $PROXY_URL | cut -d/ -f3 | cut -d: -f1); \
|
||||
port=$(echo $PROXY_URL | cut -d: -f3); \
|
||||
|
@ -50,7 +50,13 @@ export async function requestOpenai(req: NextRequest) {
|
||||
|
||||
if (res.status === 401) {
|
||||
// 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;
|
||||
|
@ -42,7 +42,7 @@ export function ListItem(props: {
|
||||
className?: string;
|
||||
}) {
|
||||
return (
|
||||
<div className={styles["list-item"] + ` ${props.className}`}>
|
||||
<div className={styles["list-item"] + ` ${props.className || ""}`}>
|
||||
<div className={styles["list-header"]}>
|
||||
{props.icon && <div className={styles["list-icon"]}>{props.icon}</div>}
|
||||
<div className={styles["list-item-title"]}>
|
||||
|
Loading…
Reference in New Issue
Block a user