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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user