fix: handle missing server.logs config

This commit is contained in:
Ayo Ayco 2024-12-31 02:08:38 +01:00
parent 0c5fc3d056
commit 5f3ef8c621

View file

@ -35,7 +35,7 @@ export function useMcFlyRoute({ storage }) {
const { components: componentType } = config
let html = await getHtml(path, storage)
if (config.server.logs) {
if (config?.server?.logs) {
consola.info('[INFO]: Config found\n', config)
}