This commit is contained in:
Milo Schwartz
2024-10-12 18:22:20 -04:00
9 changed files with 75 additions and 66 deletions

View File

@@ -14,6 +14,7 @@ import internal from "@server/routers/internal";
import { authenticated, unauthenticated } from "@server/routers/external";
import cookieParser from "cookie-parser";
import { User } from "@server/db/schema";
import { ensureActions } from "./db/ensureActions";
const dev = config.app.environment !== "prod";
@@ -25,6 +26,8 @@ const internalPort = config.server.internal_port;
app.prepare().then(() => {
ensureActions(); // This loads the actions into the database
// External server
const externalServer = express();
externalServer.set("trust proxy", 1);