0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-25 04:08:12 +00:00

this fixes the tests

This commit is contained in:
Víctor Losada Hernández
2026-02-24 21:51:34 +01:00
parent c89f17ebbf
commit 86a03fd0bf
2 changed files with 156 additions and 255 deletions

View File

@@ -4,11 +4,12 @@ import config from "./server/config.js";
import { createServer as createViteServer } from "vite";
const isProd = process.env.NODE_ENV === "production";
const isDev = process.env.NODE_ENV === "development";
async function start() {
let vite;
if (!isProd) {
if (isDev) {
vite = await createViteServer({
server: { middlewareMode: true },
appType: "custom",