fix(build): fixed build

This commit is contained in:
Waleed Latif
2025-07-08 16:52:35 -07:00
parent 6dc8b17bed
commit 2c9a4f4c3e
2 changed files with 2 additions and 3 deletions

View File

@@ -3,7 +3,6 @@
"version": "0.1.0",
"private": true,
"license": "Apache-2.0",
"type": "module",
"engines": {
"bun": ">=1.2.13",
"node": ">=20.0.0"

View File

@@ -1,10 +1,10 @@
import path, { resolve } from 'path'
/// <reference types="vitest" />
import nextEnv from '@next/env'
import react from '@vitejs/plugin-react'
import { configDefaults, defineConfig } from 'vitest/config'
const { loadEnvConfig } = nextEnv
const nextEnv = require('@next/env')
const { loadEnvConfig } = nextEnv.default || nextEnv
const projectDir = process.cwd()
loadEnvConfig(projectDir)