Aktualisiere Docker-Images auf die neuesten Versionen und passe die Pfade in der esbuild-Konfiguration an
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user