Aktualisiere Docker-Images auf die neuesten Versionen und passe die Pfade in der esbuild-Konfiguration an

This commit is contained in:
2025-03-27 16:59:52 +00:00
parent 7a6a2cbd22
commit cf1acc1d80
3 changed files with 5 additions and 10 deletions

View File

@@ -26,7 +26,7 @@ services:
tibiserver: tibiserver:
profiles: profiles:
- tibi - tibi
image: gitbase.de/cms/tibi-server image: gitbase.de/cms/tibi-server:dev
volumes: volumes:
- ./:/data - ./:/data
environment: environment:
@@ -113,7 +113,7 @@ services:
profiles: profiles:
- tibi - tibi
- tibi-dev - tibi-dev
image: gitbase.de/server/mongo:4.2 image: gitbase.de/server/mongo:8
volumes: volumes:
- ./tmp/mongo-data:/data/db - ./tmp/mongo-data:/data/db
user: ${CODER_UID}:${CODER_GID} user: ${CODER_UID}:${CODER_GID}

View File

@@ -93,7 +93,6 @@ if (process.argv[2] == "start") {
changeOrigin: true, changeOrigin: true,
logLevel: "debug", logLevel: "debug",
pathRewrite: function (path, req) { pathRewrite: function (path, req) {
console.log(path)
return "/ssr?url=" + encodeURIComponent(path) return "/ssr?url=" + encodeURIComponent(path)
}, },
}) })
@@ -107,7 +106,7 @@ module.exports = {
options: options, options: options,
distDir, distDir,
watch: { watch: {
path: [__dirname + "/" + frontendDir + "/src/**/*"], path: [__dirname + "/" + frontendDir + "/src"],
}, },
serve: { serve: {
onRequest(args) { onRequest(args) {

View File

@@ -1,14 +1,10 @@
import App from "./App.svelte" import App from "./App.svelte"
import { hydrate } from "svelte"
let appContainer = document?.getElementById("appContainer") let appContainer = document?.getElementById("appContainer")
const hydrate = true //import.meta?.env?.MODE !== "development"
console.log("Features: ", { hydrate }) console.log("Features: ", { hydrate })
const app = new App({ const app = hydrate(App, { target: appContainer })
target: appContainer,
props: {},
hydrate,
})
export default app export default app