From cdde15347b75b1bde8a8fefb0f886532dcb66406 Mon Sep 17 00:00:00 2001 From: Quentin Bramas <bramas@unistra.fr> Date: Mon, 11 Nov 2024 14:42:58 +0100 Subject: [PATCH] fix build --- app.config.ts | 27 ++++++++++----------------- src/routes/[...404].tsx | 7 ------- 2 files changed, 10 insertions(+), 24 deletions(-) diff --git a/app.config.ts b/app.config.ts index 6d0dc8d..f95ed13 100644 --- a/app.config.ts +++ b/app.config.ts @@ -1,19 +1,12 @@ import { defineConfig } from "@solidjs/start/config"; -import { createApp } from "vinxi"; -export default createApp({ - routers: [ - { - name: "public", - type: "static", - dir: "./public", - base: '/git-cheat/', + +export default defineConfig({ + ssr: true, + server: { + prerender: { + crawlLinks: true + }, + baseURL: "/git-cheat/", + preset: 'gitlab-pages', }, - { - name: "ssr", - type: "http", - base: '/git-cheat/', - handler: "./app/server.tsx", - target: "server", - }, - ] -}); +}); \ No newline at end of file diff --git a/src/routes/[...404].tsx b/src/routes/[...404].tsx index 4ea71ec..2c68027 100644 --- a/src/routes/[...404].tsx +++ b/src/routes/[...404].tsx @@ -7,13 +7,6 @@ export default function NotFound() { <Title>Not Found</Title> <HttpStatusCode code={404} /> <h1>Page Not Found</h1> - <p> - Visit{" "} - <a href="https://start.solidjs.com" target="_blank"> - start.solidjs.com - </a>{" "} - to learn how to build SolidStart apps. - </p> </main> ); } -- GitLab