I'm authoring a module and I want to check if a certain server file exists in the user's project, but it doesn't work in the module's playground. My guess was that
nuxt.options.rootDir
nuxt.options.rootDir
would resolve to the absolute path for
./playground/
./playground/
but it resolves to the module's root directory.
What is the recommended way to resolve file locations in the user's project / layers while supporting the module's playground context ?