From b55daba49cdac2cbc0bcce5018b5b917bf5856c8 Mon Sep 17 00:00:00 2001 From: Nikolaj Frey Date: Wed, 24 Jul 2024 13:56:08 +0800 Subject: [PATCH] Tested adding serverModuleFormat cjs feature/random-nik-things --- remix/vite.config.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/remix/vite.config.ts b/remix/vite.config.ts index b7ba49f..12a49ef 100644 --- a/remix/vite.config.ts +++ b/remix/vite.config.ts @@ -2,7 +2,7 @@ import { vitePlugin as remix } from '@remix-run/dev'; import { installGlobals } from '@remix-run/node'; import { defineConfig } from 'vite'; import tsconfigPaths from 'vite-tsconfig-paths'; -import { flatRoutes } from 'remix-flat-routes' +import { flatRoutes } from 'remix-flat-routes'; installGlobals(); @@ -17,11 +17,12 @@ export default defineConfig({ }, plugins: [ remix({ - - routes: async defineRoutes => { - return flatRoutes('routes', defineRoutes) + routes: async (defineRoutes) => { + return flatRoutes('routes', defineRoutes); }, - + + serverModuleFormat: 'cjs', + // app path appDirectory: 'app' }),