diff --git a/frontend/appflowy_web_app/server.cjs b/frontend/appflowy_web_app/server.cjs index dfce8db01c..d0cf04b559 100644 --- a/frontend/appflowy_web_app/server.cjs +++ b/frontend/appflowy_web_app/server.cjs @@ -5,7 +5,6 @@ const cheerio = require('cheerio'); const { fetch } = require('bun'); const distDir = path.join(__dirname, 'dist'); const indexPath = path.join(distDir, 'index.html'); -const logo = '/appflowy.svg'; const setOrUpdateMetaTag = ($, selector, attribute, content) => { if ($(selector).length === 0) { $('head').append(``); @@ -61,6 +60,7 @@ const createServer = async (req) => { const timer = logRequestTimer(req); const reqUrl = new URL(req.url); logger.info(`Request URL: ${reqUrl.pathname}`); + const logo = reqUrl.origin + '/appflowy.svg'; const [ namespace,