chore: build directory

This commit is contained in:
Cory Dransfeldt 2024-10-28 16:58:24 -07:00
parent cb9a3b8f48
commit 4e0e559f0c
No known key found for this signature in database
6 changed files with 7 additions and 7 deletions

View file

@ -71,7 +71,7 @@ app.use((req, res, next) => {
});
app.use(
express.static(path.join(__dirname, "_site"), { extensions: ["html"] })
express.static(path.join(__dirname, "dist"), { extensions: ["html"] })
);
const proxy = createProxyMiddleware({
@ -97,7 +97,7 @@ app.use(
);
app.use((req, res) => {
res.status(404).sendFile(path.join(__dirname, "_site", "404.html"), (err) => {
res.status(404).sendFile(path.join(__dirname, "dist", "404.html"), (err) => {
if (err) res.status(404).send("Page not found");
});
});