From 92a00c5cca9e359ceb5fb930589be87e33ada93c Mon Sep 17 00:00:00 2001
From: chenxc <>
Date: Mon, 15 Jul 2024 13:53:32 +0800
Subject: [PATCH] feat(side config): add SITE_TITLE,SITE_DESCRIPTION and
SITE_LOGO_URL as environment variable
---
.env.template | 6 ++++--
.github/workflows/docker.yml | 2 +-
app/components/exporter.tsx | 9 ++++-----
app/components/sidebar.tsx | 14 ++++++++------
app/config/server.ts | 23 +++++++++++++----------
app/layout.tsx | 9 ++++++---
app/store/update.ts | 6 ++++--
7 files changed, 40 insertions(+), 29 deletions(-)
diff --git a/.env.template b/.env.template
index 4a6fe3fef..679332ef0 100644
--- a/.env.template
+++ b/.env.template
@@ -63,8 +63,10 @@ ANTHROPIC_URL=
WHITE_WEBDEV_ENDPOINTS=
### custom sidebar title.(optional)
-SIDEBAR_TITLE=
+SITE_TITLE=
### custom sidebar subtitle.(optional)
-SIDEBAR_SUBTITLE=
+SITE_DESCRIPTION=
+## custom sidebar logo url.(optional)
+SITE_LOGO_URL=
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index b3a0405a8..963244c33 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -25,7 +25,7 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
- images: 195658/chatgpt-next-web
+ images: yidadaa/chatgpt-next-web
tags: |
type=raw,value=latest
type=ref,event=tag
diff --git a/app/components/exporter.tsx b/app/components/exporter.tsx
index 948807d4c..57259aa00 100644
--- a/app/components/exporter.tsx
+++ b/app/components/exporter.tsx
@@ -40,6 +40,7 @@ import { EXPORT_MESSAGE_CLASS_NAME } from "../constant";
import { getClientConfig } from "../config/client";
import { type ClientApi, getClientApi } from "../client/api";
import { getMessageTextContent } from "../utils";
+import { getServerSideConfig } from "@/app/config/server";
const Markdown = dynamic(async () => (await import("./markdown")).Markdown, {
loading: () =>