diff --git a/package.json b/package.json index e089955..d3ff1fc 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,9 @@ "version": "1.0.0", "type": "module", "scripts": { - "build": "tsc --build", - "clean": "tsc --build --clean", + "build": "tsc -b", + "clean": "tsc -b --clean", + "dev": "tsc -b -w", "start": "node ./dist/index.js" }, "repository": { diff --git a/src/app.ts b/src/app.ts index d1d8e35..2aaed59 100644 --- a/src/app.ts +++ b/src/app.ts @@ -9,6 +9,7 @@ const app = express(); app.use(helmet()); app.use(morgan("combined")); +app.set("trust proxy", "loopback"); // app.use(morgan(process.env.NODE_ENV === "production" ? "tiny" : "dev")); app.use(express.json()); @@ -37,7 +38,7 @@ Disallow: /`); }); app.get("/source", (_req, res) => { - res.redirect(301, "https://git.freecumextremist.com/grumbulon/waifurudor.de"); + res.redirect(301, "https://git.froth.zone/sam/waifurudor.de"); }); // For 404s