Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How to get root path of a nuxt project? - Nuxt
N
Nuxt
•
8mo ago
•
12 replies
zigglearner1235
How to get root path of a nuxt project?
I am trying to make nuxt create new directories for me during build step
. How can I do it
?
I am using
mkdirSync(join(process.cwd(), 'new-dir'))
mkdirSync(join(process.cwd(), 'new-dir'))
on nuxt
's
ready
ready
build hook but it ofc creates the directory on the path where I run the build command because of process
.cwd
(
)
. How can I get build
's root directory
?
Nuxt
Join
Nuxt Community Chat Server
31,817
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How to get project directory in nuxt kit ?
N
Nuxt / ❓・help
3y ago
Disable root files being copied into `/_nuxt` path
N
Nuxt / ❓・help
17mo ago
How to upgrade a Nuxt v3 project to the latest Nuxt 3 version?
N
Nuxt / ❓・help
7mo ago
How to get a rich text editor in Nuxt Content/Nuxt Studio
N
Nuxt / ❓・help
13mo ago