Bump version - fix svelte.config.js

This commit is contained in:
Fred Boniface 2023-07-24 12:23:16 +01:00
parent d3cec6e15b
commit 29de27181c
4 changed files with 10 additions and 13 deletions

View File

@ -1,3 +1,3 @@
export const version: string = '2023.7.1'; export const version: string = '2023.7.1';
export const versionTag: string = 'beta.6'; export const versionTag: string = 'beta7';
export const showWelcome: boolean = true; export const showWelcome: boolean = true;

View File

@ -4,9 +4,8 @@
import Loading from '$lib/navigation/loading.svelte'; import Loading from '$lib/navigation/loading.svelte';
import Nav from '$lib/navigation/nav.svelte'; import Nav from '$lib/navigation/nav.svelte';
import LargeLogo from '$lib/images/large-logo.svelte'; import LargeLogo from '$lib/images/large-logo.svelte';
import { version, versionTag } from '$lib/stores/version.js'; import { version, versionTag } from '$lib/stores/version';
const title = 'Versions'; const title = 'Versions';
const variable = { title: '' };
async function getData() { async function getData() {
const url = 'https://owlboard.info/misc/server/versions'; const url = 'https://owlboard.info/misc/server/versions';

View File

@ -40,7 +40,7 @@ self.addEventListener('fetch', (event) => {
try { try {
return await fetch(event.request); return await fetch(event.request);
} catch (err) { } catch (err) {
return { error: 'OFFLINE', errorMsg: 'You are not online' }; return { error: 'OFFLINE', errorMsg: 'You are offline' };
} }
} }

View File

@ -1,17 +1,15 @@
import adapter from '@sveltejs/adapter-auto'; import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/kit/vite'; import { vitePreprocess } from '@sveltejs/kit/vite';
/** @type {import('@sveltejs/kit').Config} */
const config = { const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(), preprocess: vitePreprocess(),
kit: { kit: {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. adapter: adapter({
// If your environment is not supported or you settled on a specific environment, switch out the adapter. pages: 'build',
// See https://kit.svelte.dev/docs/adapters for more information about adapters. assets: 'build',
adapter: adapter() precompress: true,
strict: true
})
} }
}; };