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 { path } = event
|
||||||
const { appConfigFile } = useRuntimeConfig()
|
const { appConfigFile } = useRuntimeConfig()
|
||||||
|
|
||||||
let { default: configFn } = await import(appConfigFile)
|
let config
|
||||||
let config = configFn()
|
// TODO: this still doesn't work on Netlify
|
||||||
|
try {
|
||||||
|
let { default: configFn } = await import(appConfigFile)
|
||||||
|
config = configFn()
|
||||||
|
} catch (err) {
|
||||||
|
consola.error(err)
|
||||||
|
}
|
||||||
const storage = useStorage()
|
const storage = useStorage()
|
||||||
|
|
||||||
// if not page, don't render
|
// if not page, don't render
|
||||||
|
|
Loading…
Reference in a new issue