fix: update codes

This commit is contained in:
qinluhe 2024-06-27 14:03:53 +08:00
parent e27dddef61
commit 3b76ee9078

View File

@ -56,7 +56,7 @@ const fetchMetaData = async (url) => {
} }
}; };
const BASE_URL = process.env.AF_BASE_URL || 'https://test.appflowy.cloud'; const BASE_URL = process.env.AF_BASE_URL || 'https://beta.appflowy.cloud';
const createServer = async (req) => { const createServer = async (req) => {
const timer = logRequestTimer(req); const timer = logRequestTimer(req);
const reqUrl = new URL(req.url); const reqUrl = new URL(req.url);
@ -140,7 +140,7 @@ const start = () => {
}, },
}); });
logger.info(`Server is running on port 3000`); logger.info(`Server is running on port 3000`);
logger.info(`Base URL: ${process.env.AF_BASE_URL}`); logger.info(`Base API URL: ${process.env.AF_BASE_URL}`);
} catch (err) { } catch (err) {
logger.error(err); logger.error(err);
process.exit(1); process.exit(1);