We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 693e025 commit dc9218cCopy full SHA for dc9218c
packages/core/src/node/context-internal.ts
@@ -1,5 +1,6 @@
1
import type { DevToolsNodeContext } from '@vitejs/devtools-kit'
2
import type { SharedState } from '@vitejs/devtools-kit/utils/shared-state'
3
+import { homedir } from 'node:os'
4
import { join } from 'pathe'
5
import { createStorage } from './storage'
6
@@ -25,7 +26,7 @@ export function getInternalContext(context: DevToolsNodeContext): DevToolsIntern
25
26
const internalContext: DevToolsInternalContext = {
27
storage: {
28
auth: createStorage<InternalAnonymousAuthStorage>({
- filepath: join(context.workspaceRoot, 'node_modules/.vite/devtools/auth.json'),
29
+ filepath: join(homedir(), '.vite/devtools/auth.json'),
30
initialValue: {
31
trusted: {},
32
},
0 commit comments