mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: bugs
This commit is contained in:
parent
2b602f10cb
commit
3aabe7182d
@ -3,8 +3,11 @@ const fs = require('fs');
|
|||||||
const pino = require('pino');
|
const pino = require('pino');
|
||||||
const cheerio = require('cheerio');
|
const cheerio = require('cheerio');
|
||||||
const { fetch } = require('bun');
|
const { fetch } = require('bun');
|
||||||
|
const { readFileSync } = require('node:fs');
|
||||||
const distDir = path.join(__dirname, 'dist');
|
const distDir = path.join(__dirname, 'dist');
|
||||||
const indexPath = path.join(distDir, 'index.html');
|
const indexPath = path.join(distDir, 'index.html');
|
||||||
|
const logo = 'https://test.appflowy.com/appflowy.svg';
|
||||||
|
|
||||||
const setOrUpdateMetaTag = ($, selector, attribute, content) => {
|
const setOrUpdateMetaTag = ($, selector, attribute, content) => {
|
||||||
if ($(selector).length === 0) {
|
if ($(selector).length === 0) {
|
||||||
$('head').append(`<meta ${attribute}="${selector.match(/\[(.*?)\]/)[1]}" content="${content}">`);
|
$('head').append(`<meta ${attribute}="${selector.match(/\[(.*?)\]/)[1]}" content="${content}">`);
|
||||||
@ -60,7 +63,6 @@ const createServer = async (req) => {
|
|||||||
const timer = logRequestTimer(req);
|
const timer = logRequestTimer(req);
|
||||||
const reqUrl = new URL(req.url);
|
const reqUrl = new URL(req.url);
|
||||||
logger.info(`Request URL: ${reqUrl.pathname}`);
|
logger.info(`Request URL: ${reqUrl.pathname}`);
|
||||||
const logo = reqUrl.origin + '/appflowy.svg';
|
|
||||||
|
|
||||||
const [
|
const [
|
||||||
namespace,
|
namespace,
|
||||||
|
Loading…
Reference in New Issue
Block a user