syntaur 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9198,8 +9198,9 @@ function createDashboardServer(options) {
9198
9198
  app.use("/api/projects/:projectId/todos", createProjectTodosRouter(projectsDir, broadcast));
9199
9199
  app.use("/api/backup", createBackupRouter());
9200
9200
  if (serveStaticUi && dashboardDistPath) {
9201
- app.use("/assets", express.static(resolve18(dashboardDistPath, "assets")));
9202
- app.use(express.static(dashboardDistPath, { index: false, fallthrough: true }));
9201
+ const sendOpts = { dotfiles: "allow" };
9202
+ app.use("/assets", express.static(resolve18(dashboardDistPath, "assets"), sendOpts));
9203
+ app.use(express.static(dashboardDistPath, { ...sendOpts, index: false, fallthrough: true }));
9203
9204
  app.get("{*path}", async (req, res) => {
9204
9205
  if (req.path.startsWith("/api") || req.path === "/ws" || req.path.startsWith("/assets")) {
9205
9206
  res.status(404).json({ error: "Not Found" });
@@ -9212,7 +9213,7 @@ function createDashboardServer(options) {
9212
9213
  );
9213
9214
  return;
9214
9215
  }
9215
- res.sendFile(indexPath, (err) => {
9216
+ res.sendFile(indexPath, sendOpts, (err) => {
9216
9217
  if (err) {
9217
9218
  console.error("Error sending dashboard index.html:", err);
9218
9219
  if (!res.headersSent) res.status(500).send("Dashboard load error");