Skip to content

Commit

Permalink
Fix windows public file handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Jan 9, 2020
1 parent b276b57 commit adbdb01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/next/next-server/server/next-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,9 @@ export default class Server {
}

protected generatePublicRoutes(): Route[] {
const publicFiles = new Set(recursiveReadDirSync(this.publicDir))
const publicFiles = new Set(
recursiveReadDirSync(this.publicDir).map(p => p.replace(/\\/g, '/'))
)

return [
{
Expand Down

0 comments on commit adbdb01

Please sign in to comment.