From 017172490536a4afdce3c2a2b8619633f7d0f29b Mon Sep 17 00:00:00 2001 From: spitkov Date: Sun, 5 Jan 2025 13:25:46 +0100 Subject: [PATCH] mabye no gh pages --- .nojekyll | 1 - src/routes/+layout.ts | 2 -- src/routes/+page.svelte | 16 ++++++++++++---- svelte.config.js | 31 ++++++++++++++----------------- vite.config.ts | 16 +--------------- 5 files changed, 27 insertions(+), 39 deletions(-) delete mode 100644 .nojekyll delete mode 100644 src/routes/+layout.ts diff --git a/.nojekyll b/.nojekyll deleted file mode 100644 index 0519ecb..0000000 --- a/.nojekyll +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/routes/+layout.ts b/src/routes/+layout.ts deleted file mode 100644 index 1da7613..0000000 --- a/src/routes/+layout.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const prerender = true; -export const ssr = false; \ No newline at end of file diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 8869b06..e383711 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -27,7 +27,7 @@

yaerguOS

- lilypad + lilypad
@@ -155,7 +155,7 @@

© 2025 yaerguOS. All rights reserved.

- + @@ -163,7 +163,7 @@ GitHub - + @@ -171,7 +171,7 @@ Discord - + @@ -186,9 +186,17 @@ diff --git a/svelte.config.js b/svelte.config.js index 3e6363e..1295460 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,21 +1,18 @@ -import adapter from '@sveltejs/adapter-static'; +import adapter from '@sveltejs/adapter-auto'; import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; -export default { +/** @type {import('@sveltejs/kit').Config} */ +const config = { + // Consult https://svelte.dev/docs/kit/integrations + // for more information about preprocessors + preprocess: vitePreprocess(), + kit: { - adapter: adapter({ - pages: 'build', - assets: 'build', - fallback: 'index.html', - precompress: false, - strict: true - }), - paths: { - base: process.env.NODE_ENV === 'production' ? '/yaerguos-website' : '', - assets: process.env.NODE_ENV === 'production' ? 'https://spitkov.github.io/yaerguos-website' : '' - }, - appDir: 'app', - trailingSlash: 'always' - }, - preprocess: vitePreprocess() + // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list. + // If your environment is not supported, or you settled on a specific environment, switch out the adapter. + // See https://svelte.dev/docs/kit/adapters for more information about adapters. + adapter: adapter() + } }; + +export default config; diff --git a/vite.config.ts b/vite.config.ts index 93ef0f9..bbf8c7d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,19 +2,5 @@ import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; export default defineConfig({ - plugins: [sveltekit()], - build: { - target: 'esnext', - assetsDir: '_app', - rollupOptions: { - output: { - manualChunks: undefined - } - } - }, - server: { - fs: { - allow: ['..'] - } - } + plugins: [sveltekit()] });