From 4baba3f6dfb630d88e32a0ae0084f71c10094098 Mon Sep 17 00:00:00 2001 From: Quentin Bramas <bramas@unistra.fr> Date: Mon, 11 Nov 2024 11:30:14 +0000 Subject: [PATCH] Update file app.config.ts --- app.config.ts | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/app.config.ts b/app.config.ts index 47e9663..6d0dc8d 100644 --- a/app.config.ts +++ b/app.config.ts @@ -1,13 +1,19 @@ import { defineConfig } from "@solidjs/start/config"; - -export default defineConfig({ - ssr: true, - server: { - - prerender: { - crawlLinks: true - }, - preset: 'static' +import { createApp } from "vinxi"; +export default createApp({ + routers: [ + { + name: "public", + type: "static", + dir: "./public", + base: '/git-cheat/', }, - base: '/git-cheat/' - }); \ No newline at end of file + { + name: "ssr", + type: "http", + base: '/git-cheat/', + handler: "./app/server.tsx", + target: "server", + }, + ] +}); -- GitLab