Ensure the user's actions

This commit is contained in:
Owen Schwartz
2024-10-10 21:59:30 -04:00
parent 143a3b756e
commit 4fc630cf42
9 changed files with 74 additions and 63 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 = environment.ENVIRONMENT !== "prod";
@@ -25,6 +26,8 @@ const internalPort = environment.INTERNAL_PORT;
app.prepare().then(() => {
ensureActions(); // This loads the actions into the database
// External server
const externalServer = express();
externalServer.set("trust proxy", 1);