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',
|
||||
cwd: '.',
|
||||
})
|
||||
const config = loadedConfig.config ?? {
|
||||
components: 'js',
|
||||
const config = {
|
||||
components: 'js', // work around for c12.loadConfig not working on Netlify function
|
||||
...loadedConfig,
|
||||
}
|
||||
const { components: componentType } = config
|
||||
let html = await getHtml(path, storage)
|
||||
|
|
Loading…
Reference in a new issue