fix: c12 loadConfig not getting mcfly config
This commit is contained in:
parent
31d5a33cd6
commit
4640b6e5cf
1 changed files with 4 additions and 1 deletions
|
@ -22,7 +22,10 @@ import { eventHandler } from 'h3'
|
||||||
export function useMcFlyRoute({ storage }) {
|
export function useMcFlyRoute({ storage }) {
|
||||||
return eventHandler(async (event) => {
|
return eventHandler(async (event) => {
|
||||||
const { path } = event
|
const { path } = event
|
||||||
const { config } = await loadConfig({ name: 'mcfly' })
|
const { config } = await loadConfig({
|
||||||
|
name: 'mcfly',
|
||||||
|
configFile: 'mcfly.config',
|
||||||
|
})
|
||||||
const { components: componentType } = config
|
const { components: componentType } = config
|
||||||
let html = await getHtml(path, storage)
|
let html = await getHtml(path, storage)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue