Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(nuxi): respect custom pages directory (#2813)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Jan 19, 2022
1 parent 1ca9424 commit 7f62ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxi/src/commands/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default defineNuxtCommand({

const isDirChange = ['addDir', 'unlinkDir'].includes(event)
const isFileChange = ['add', 'unlink'].includes(event)
const reloadDirs = ['pages', 'components', 'composables']
const reloadDirs = [currentNuxt.options.dir.pages, 'components', 'composables']

if (isDirChange) {
const dir = reloadDirs.find(dir => file.endsWith(dir))
Expand Down

0 comments on commit 7f62ed1

Please sign in to comment.