Skip to content

Commit

Permalink
fix(dev): serve any non-Remix assets from public/
Browse files Browse the repository at this point in the history
  • Loading branch information
pcattori committed May 2, 2023
1 parent 2718178 commit 68b1f5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/ninety-flies-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/dev": patch
---

Fix public asset serving for non-Remix assets in the new dev server
1 change: 1 addition & 0 deletions packages/remix-dev/devServer_unstable/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ export let serve = async (
maxAge: "1y",
})
)
.use(express.static("public", { maxAge: "1h" }))

// handle `broadcastDevReady` messages
.use(express.json())
Expand Down

0 comments on commit 68b1f5e

Please sign in to comment.