Skip to content

Commit

Permalink
fix(session): 🐛 Added missing h3 import
Browse files Browse the repository at this point in the history
  • Loading branch information
itpropro committed Jan 4, 2024
1 parent d6fb470 commit 04c1361
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions playground/staticwebapp.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@
}
],
"platform": {
"apiRuntime": "node:18"
"apiRuntime": "node:16"
},
"navigationFallback": {
"rewrite": "/api/server",
"exclude": [
"/_nuxt/*"
]
"rewrite": "/api/server"
}
}
}
2 changes: 1 addition & 1 deletion src/runtime/server/utils/session.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useSession, createError } from 'h3'
import { useSession, createError, deleteCookie } from 'h3'
import { defu } from 'defu'
import { createHooks } from 'hookable'
// @ts-expect-error - Missing types for nitro exports in Nuxt (useStorage)
Expand Down

0 comments on commit 04c1361

Please sign in to comment.