Skip to content

Commit

Permalink
fix: sets ResourceHandler to not use filemapping, avoids win file loc…
Browse files Browse the repository at this point in the history
…king (#632)

* Sets ResourceHandler to not use filemapping, which avoids the file locking issue on windows.

---------

Co-authored-by: mawi <[email protected]>
  • Loading branch information
chipbite and mawid6 authored Nov 5, 2024
1 parent 7f6a255 commit 3ab155d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ class ServeCommand : Subcommand("serve", "Start a development server") {
private fun createStaticResourceHandler() =
ResourceHandler().apply {
baseResource = ResourceFactory.of(this).newResource(File(siteDir).absolutePath)
isUseFileMapping = false
}

private fun createWebSocketHandler(
Expand Down

0 comments on commit 3ab155d

Please sign in to comment.