Remove log statements
This commit is contained in:
@@ -71,7 +71,7 @@ function Put(req: NextApiRequest, res: NextApiResponse) {
|
|||||||
const targetPath = path.join('data/configs', `${slug}.json`);
|
const targetPath = path.join('data/configs', `${slug}.json`);
|
||||||
fs.writeFileSync(targetPath, JSON.stringify(newConfig, null, 2), 'utf8');
|
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({
|
return res.status(200).json({
|
||||||
message: 'Configuration saved with success',
|
message: 'Configuration saved with success',
|
||||||
|
|||||||
@@ -49,8 +49,6 @@ export async function getServerSideProps({
|
|||||||
|
|
||||||
const translations = await getServerSideTranslations(req, res, dashboardNamespaces, locale);
|
const translations = await getServerSideTranslations(req, res, dashboardNamespaces, locale);
|
||||||
|
|
||||||
Consola.info(`Decided to use configuration '${configName}'`);
|
|
||||||
|
|
||||||
const config = getFrontendConfig(configName as string);
|
const config = getFrontendConfig(configName as string);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user