fix: handle missing server.logs config
This commit is contained in:
parent
0c5fc3d056
commit
5f3ef8c621
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue