From 46e7fd4d5915d59931f516b350b79def62a2af40 Mon Sep 17 00:00:00 2001 From: RappyTV Date: Thu, 22 Feb 2024 18:32:51 +0100 Subject: [PATCH] Fix build errors because of dotenv --- vite.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index ddf74c6..75df46c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,7 +1,8 @@ import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vitest/config'; +import dotenv from 'dotenv'; -require('dotenv').config(); +dotenv.config(); export default defineConfig({ plugins: [sveltekit()],