Skip to content

Commit

Permalink
fix: get pages.config in nodejs environment now (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
LetFree authored Jul 30, 2023
1 parent 26963ad commit a666690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class PageContext {
}

async loadUserPagesConfig() {
const { config } = await loadConfig<PagesConfig>({ sources: [{ files: 'pages.config' }] })
const { config } = await loadConfig<PagesConfig>({ cwd: this.root, sources: [{ files: 'pages.config' }] })
if (!config) {
this.logger?.warn('Can\'t found pages.config, please create pages.config.(ts|mts|cts|js|cjs|mjs|json)')
process.exit(-1)
Expand Down

0 comments on commit a666690

Please sign in to comment.