fix: add workaround for Netlify function
This commit is contained in:
parent
a55d669214
commit
c288b2235f
1 changed files with 3 additions and 2 deletions
|
@ -27,8 +27,9 @@ export function useMcFlyRoute({ storage }) {
|
||||||
configFile: 'mcfly.config',
|
configFile: 'mcfly.config',
|
||||||
cwd: '.',
|
cwd: '.',
|
||||||
})
|
})
|
||||||
const config = loadedConfig.config ?? {
|
const config = {
|
||||||
components: 'js',
|
components: 'js', // work around for c12.loadConfig not working on Netlify function
|
||||||
|
...loadedConfig,
|
||||||
}
|
}
|
||||||
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