diff --git a/routes/src/buildRoutes.scala b/routes/src/buildRoutes.scala index 0f18a58..ca16c76 100644 --- a/routes/src/buildRoutes.scala +++ b/routes/src/buildRoutes.scala @@ -61,6 +61,12 @@ def frontendRoutes[F[_]]( end frontendRoutes +/** Assumes that assets are served from the server route from resources + * + * @param spaPrefix + * \- configure the route you want the SPA to be served under + * @return + */ def defaultFrontendRoutes[F[_]](spaPrefix: String = "ui") = val frontendJs = org.http4s.server.staticcontent.resourceServiceBuilder[IO]("").toRoutes val serveIndexHtmlBelowSpaPrefix = HttpRoutes.of[IO] { diff --git a/sjsls/src/build.runner.scala b/sjsls/src/build.runner.scala index 2c72400..6033c39 100644 --- a/sjsls/src/build.runner.scala +++ b/sjsls/src/build.runner.scala @@ -4,8 +4,6 @@ import java.util.Locale import fs2.* import fs2.concurrent.Topic -import fs2.io.Watcher -import fs2.io.Watcher.Event import fs2.io.process.ProcessBuilder import fs2.io.process.Processes