Remove log statements

This commit is contained in:
ajnart
2023-01-13 18:59:38 +09:00
parent 27884656a3
commit 7a03509ae5
2 changed files with 1 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ function Put(req: NextApiRequest, res: NextApiResponse) {
const targetPath = path.join('data/configs', `${slug}.json`);
fs.writeFileSync(targetPath, JSON.stringify(newConfig, null, 2), 'utf8');
Consola.info(`Config '${slug}' has been updated and flushed to '${targetPath}'.`);
Consola.debug(`Config '${slug}' has been updated and flushed to '${targetPath}'.`);
return res.status(200).json({
message: 'Configuration saved with success',

View File

@@ -49,8 +49,6 @@ export async function getServerSideProps({
const translations = await getServerSideTranslations(req, res, dashboardNamespaces, locale);
Consola.info(`Decided to use configuration '${configName}'`);
const config = getFrontendConfig(configName as string);
return {