diff --git a/packages/core/src/context.ts b/packages/core/src/context.ts index 716913a..610a916 100644 --- a/packages/core/src/context.ts +++ b/packages/core/src/context.ts @@ -78,9 +78,9 @@ export class PageContext { async loadUserPagesConfig() { const configSource = this.options.configSource const { config, sources } = await loadConfig({ cwd: this.root, sources: configSource, defaults: {} }) - this.pagesGlobConfig = config + this.pagesGlobConfig = config.default || config this.pagesConfigSourcePaths = sources - debug.options(config) + debug.options(this.pagesGlobConfig) } async scanPages() {