diff --git a/docker-compose-local.yml b/docker-compose-local.yml index a218567..e9609fa 100644 --- a/docker-compose-local.yml +++ b/docker-compose-local.yml @@ -26,7 +26,7 @@ services: tibiserver: profiles: - tibi - image: gitbase.de/cms/tibi-server + image: gitbase.de/cms/tibi-server:dev volumes: - ./:/data environment: @@ -113,7 +113,7 @@ services: profiles: - tibi - tibi-dev - image: gitbase.de/server/mongo:4.2 + image: gitbase.de/server/mongo:8 volumes: - ./tmp/mongo-data:/data/db user: ${CODER_UID}:${CODER_GID} diff --git a/esbuild.config.js b/esbuild.config.js index 7c2dfb1..796c6ac 100644 --- a/esbuild.config.js +++ b/esbuild.config.js @@ -93,7 +93,6 @@ if (process.argv[2] == "start") { changeOrigin: true, logLevel: "debug", pathRewrite: function (path, req) { - console.log(path) return "/ssr?url=" + encodeURIComponent(path) }, }) @@ -107,7 +106,7 @@ module.exports = { options: options, distDir, watch: { - path: [__dirname + "/" + frontendDir + "/src/**/*"], + path: [__dirname + "/" + frontendDir + "/src"], }, serve: { onRequest(args) { diff --git a/frontend/src/index.ts b/frontend/src/index.ts index 8bd1d3b..7d34ecb 100644 --- a/frontend/src/index.ts +++ b/frontend/src/index.ts @@ -1,14 +1,10 @@ import App from "./App.svelte" +import { hydrate } from "svelte" let appContainer = document?.getElementById("appContainer") -const hydrate = true //import.meta?.env?.MODE !== "development" console.log("Features: ", { hydrate }) -const app = new App({ - target: appContainer, - props: {}, - hydrate, -}) +const app = hydrate(App, { target: appContainer }) export default app