Skip to content
Open
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
4 changes: 2 additions & 2 deletions packages/vue-query-nuxt/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export default defineNuxtModule<ModuleOptions>({
filename,
write: true,
getContents: async () => {
if (existsSync(resolve(nuxt.options.rootDir, "vue-query.config.ts"))) {
const configFile = resolve(nuxt.options.rootDir, "vue-query.config.ts")
if (existsSync(resolve(nuxt.options.srcDir, "vue-query.config.ts"))) {
const configFile = resolve(nuxt.options.srcDir, "vue-query.config.ts")
const file = await loadFile(configFile)
if (file.exports.pluginHook || file.exports.default) {
logger.success("Found vue-query.config.ts file")
Expand Down
Loading