Skip to content

Commit 7bbebec

Browse files
authored
Merge pull request #83 from mikesir87/82-fix-images-in-hidden-directory-not-rendering
Allow express to serve static content from dotfiles
2 parents 5117a27 + 8adcc95 commit 7bbebec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/interface/api/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ app.post("/api/sections/:sectionId/save-file", (req, res) => {
4747
});
4848
});
4949

50-
app.use(express.static("/project"));
50+
app.use(express.static("/project", { dotfiles: "allow" }));
5151

5252
// Send all unknown routes to the frontend to handle
5353
app.get("*splat", (req, res) =>

0 commit comments

Comments
 (0)