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

fix(nuxi): respect custom pages directory #2813

Merged
merged 1 commit into from
Jan 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(nuxi): respect custom pages directory
  • Loading branch information
danielroe committed Jan 19, 2022
commit 3448d3519dc237d57fc34314158aec48c59def47
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