From b611b98291da377a2d59a85d6fe6e36fb6772a4c Mon Sep 17 00:00:00 2001 From: Craig Beck Date: Tue, 9 Apr 2024 15:03:38 -0700 Subject: [PATCH] Set isProduction in AppForServer --- src/DerbyForServer.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/DerbyForServer.ts b/src/DerbyForServer.ts index 67db23df..67e09277 100644 --- a/src/DerbyForServer.ts +++ b/src/DerbyForServer.ts @@ -1,8 +1,12 @@ +import { util } from 'racer'; + import { AppBase } from './App'; import { AppForServer } from './AppForServer'; import { DerbyBase } from './Derby'; import { PageForServer } from './PageForServer'; +util.isProduction = process.env.NODE_ENV === 'production'; + export class DerbyForServer extends DerbyBase { App = AppForServer; Page = PageForServer;