From 3116a7341e0f0a4dce4053a54e94346ab45bf7f5 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 17 Jan 2024 10:38:59 +0000 Subject: [PATCH] fix: move vue server plugin out of `server/` directory --- src/module.ts | 2 +- src/runtime/{server => }/plugins/refresh-token.server.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/runtime/{server => }/plugins/refresh-token.server.ts (95%) diff --git a/src/module.ts b/src/module.ts index 4809978d..2d41bfdc 100644 --- a/src/module.ts +++ b/src/module.ts @@ -227,7 +227,7 @@ export default defineNuxtModule({ // 7.2 Add a server-plugin to refresh the token on production-startup if (selectedProvider === 'refresh') { - addPlugin(resolve('./runtime/server/plugins/refresh-token.server')) + addPlugin(resolve('./runtime/plugins/refresh-token.server')) } logger.success('`nuxt-auth` setup done') diff --git a/src/runtime/server/plugins/refresh-token.server.ts b/src/runtime/plugins/refresh-token.server.ts similarity index 95% rename from src/runtime/server/plugins/refresh-token.server.ts rename to src/runtime/plugins/refresh-token.server.ts index c7d90ec1..51490231 100644 --- a/src/runtime/server/plugins/refresh-token.server.ts +++ b/src/runtime/plugins/refresh-token.server.ts @@ -1,5 +1,5 @@ -import { _fetch } from '../../utils/fetch' -import { jsonPointerGet, useTypedBackendConfig } from '../../helpers' +import { _fetch } from '../utils/fetch' +import { jsonPointerGet, useTypedBackendConfig } from '../helpers' import { defineNuxtPlugin, useAuthState, useRuntimeConfig } from '#imports' export default defineNuxtPlugin({ name: 'refresh-token-plugin',