moving name out of file, will mirror file system name

This commit is contained in:
2024-12-17 14:09:41 -07:00
parent 068c2b6983
commit c557bbcc28
17 changed files with 127 additions and 96 deletions

View File

@@ -1,8 +1,14 @@
import { loadEnvConfig } from "@next/env";
import nextEnv from "@next/env";
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
loadEnvConfig(process.cwd());
// hack from https://github.com/vercel/next.js/issues/68091
if (nextEnv && "loadEnvConfig" in nextEnv) {
nextEnv.loadEnvConfig(process.cwd());
} else {
// eslint-disable-next-line
require("@next/env").loadEnvConfig(process.cwd());
}
export default defineConfig({
plugins: [react()],