Skip to content
This repository was archived by the owner on Dec 12, 2023. It is now read-only.

Commit cd2171e

Browse files
committed
feat: follow established module structure, remove unused import
1 parent 76464ff commit cd2171e

File tree

5 files changed

+2
-3
lines changed

5 files changed

+2
-3
lines changed

playground/app.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<script setup lang="ts">
2-
import { useFetch } from '#app';
3-
import { ref } from 'vue';
2+
import { useFetch } from '#app'
43
54
// Note: `server: false` as the initial server-side request would not have any cookies attached, so the session could not be restored there. With `server: false`
65
// nuxt 3 triggers the request on the client side, so that the cookies will be there, see https://v3.nuxtjs.org/api/composables/use-fetch#params

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default defineNuxtModule<ModuleOptions>({
8787
nuxt.options.runtimeConfig.session = moduleOptions
8888

8989
// Setup handler
90-
const handler = resolve(runtimeDir, 'session')
90+
const handler = resolve(runtimeDir, 'server/middleware/session')
9191
const serverHandler = {
9292
middleware: true,
9393
handler
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)