fix: add netlify workaround
This commit is contained in:
parent
1c9bbdb10e
commit
07970ea442
1 changed files with 8 additions and 2 deletions
|
@ -30,8 +30,14 @@ export default eventHandler(async (event) => {
|
|||
const { path } = event
|
||||
const { appConfigFile } = useRuntimeConfig()
|
||||
|
||||
let config
|
||||
// TODO: this still doesn't work on Netlify
|
||||
try {
|
||||
let { default: configFn } = await import(appConfigFile)
|
||||
let config = configFn()
|
||||
config = configFn()
|
||||
} catch (err) {
|
||||
consola.error(err)
|
||||
}
|
||||
const storage = useStorage()
|
||||
|
||||
// if not page, don't render
|
||||
|
|
Loading…
Reference in a new issue