fix: c12 loadConfig not getting mcfly config

This commit is contained in:
Ayo Ayco 2024-12-31 01:27:41 +01:00
parent 31d5a33cd6
commit 4640b6e5cf

View file

@ -22,7 +22,10 @@ import { eventHandler } from 'h3'
export function useMcFlyRoute({ storage }) {
return eventHandler(async (event) => {
const { path } = event
const { config } = await loadConfig({ name: 'mcfly' })
const { config } = await loadConfig({
name: 'mcfly',
configFile: 'mcfly.config',
})
const { components: componentType } = config
let html = await getHtml(path, storage)