Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44633,8 +44633,9 @@ var express = express$1;
const app = express();
const __filename = fileURLToPath(import.meta.url);
const __dirname = path$2.dirname(__filename);
const oneYear = 31_536_000_000;

app.use(express.static(path$2.join(__dirname, "..", "browser")));
app.use(express.static(path$2.join(__dirname, "..", "browser"), { maxAge: oneYear }));
app.get("*", function (request, response) {
response.sendFile(path$2.join(__dirname, "..", "browser", "index.html"));
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// *** IMPORTANT NOTE ***
// make sure to run "npm run build" after making any changes to this file
// changes to this file will not be reflected unless that command is run
import express from "express";
import path from "path";
import { fileURLToPath } from "url";
Expand Down
6 changes: 5 additions & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
const { spawn } = require("child_process");
const { lernaScopeArgs } = require("./github.js");

spawn("lerna", ["run", "build", ...lernaScopeArgs], { stdio: "inherit" });
const buildProcess = spawn("lerna", ["run", "build", ...lernaScopeArgs], { stdio: "inherit" });

buildProcess.on("close", (code) => {
process.exit(code);
});