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 f48bd11 commit f8d4de4Copy full SHA for f8d4de4
apps/sim/vitest.config.ts renamed to apps/sim/vitest.config.mts
@@ -3,11 +3,10 @@ import path, { resolve } from 'path'
3
import react from '@vitejs/plugin-react'
4
import tsconfigPaths from 'vite-tsconfig-paths'
5
import { configDefaults, defineConfig } from 'vitest/config'
6
-
7
-const nextEnv = require('@next/env')
8
-const { loadEnvConfig } = nextEnv.default || nextEnv
+import nextEnv from '@next/env'
9
10
const projectDir = process.cwd()
+const { loadEnvConfig } = nextEnv as { loadEnvConfig: (dir: string) => void }
11
loadEnvConfig(projectDir)
12
13
export default defineConfig({
0 commit comments