Skip to content

Commit 36d6ea9

Browse files
committed
🐛 Local build is failing due to invalid config
1 parent 8c94aaf commit 36d6ea9

File tree

5 files changed

+10
-19
lines changed

5 files changed

+10
-19
lines changed

.yarn/install-state.gz

32.8 KB
Binary file not shown.

src/app.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/// <reference types="@sveltejs/kit" />
12
/// <reference types="@svelteness/kit-docs/globals" />
23
import type { CompositionEventHandler } from 'svelte/elements'
34

File renamed without changes.

src/routes/+layout.svelte

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import { PUBLIC_ALGOLIA_ID, PUBLIC_ALGOLIA_SEARCH_KEY } from '$env/static/public'
1313
import DiscordIcon from '~icons/ri/discord-fill'
1414
import GithubIcon from '~icons/ri/github-fill'
15-
import KofiIcon from '../kit-docs/kofi-logo.svelte'
15+
import KofiIcon from '../kit-docs/kofiLogo.svelte'
1616
import { Button, KitDocs, KitDocsLayout, createSidebarContext } from '@svelteness/kit-docs'
1717
import { SLOGAN } from '$lib/strings'
1818
@@ -118,18 +118,9 @@
118118
<svelte:component this={GithubIcon} class="social-icon" />
119119
</Button>
120120
<Button title="Support Us on Ko-fi!" href="https://ko-fi.com/snavesutit">
121-
<svg
122-
width="39"
123-
height="39"
124-
viewBox="0 0 39 39"
125-
class="social-icon"
126-
xmlns="http://www.w3.org/2000/svg"
127-
>
128-
<path
129-
d="M36.821 13.9081C35.6615 7.76406 29.5326 7 29.5326 7H2.08442C1.17843 7 1.06593 8.20024 1.06593 8.20024C1.06593 8.20024 0.942933 19.2159 1.03293 25.9812C1.27893 29.627 4.91188 30 4.91188 30C4.91188 30 17.3122 29.9654 22.8606 29.9263C26.5176 29.2856 26.8851 26.0669 26.8476 24.3102C33.3755 24.6711 37.9804 20.0522 36.821 13.9081ZM20.2282 19.1889C18.3592 21.3742 14.2118 25.169 14.2118 25.169C14.2118 25.169 14.0303 25.348 13.7468 25.2036C13.6328 25.1178 13.5848 25.0682 13.5848 25.0682C12.9203 24.4049 8.53283 20.4823 7.53385 19.1212C6.47036 17.6698 5.97237 15.0602 7.39735 13.5411C8.82383 12.022 11.9048 11.9077 13.9418 14.1533C13.9418 14.1533 16.2892 11.4731 19.1437 12.7049C21.9997 13.9382 21.8917 17.2336 20.2282 19.1889ZM29.4876 19.9078C28.0956 20.0823 26.9646 19.9499 26.9646 19.9499V11.4054H29.6196C29.6196 11.4054 32.576 12.2341 32.576 15.3731C32.576 18.2503 31.0985 19.3844 29.4876 19.9078Z"
130-
fill="currentColor"
131-
/>
132-
</svg>
121+
<div class="social-icon">
122+
<KofiIcon />
123+
</div>
133124
</Button>
134125
</div>
135126
</div>

svelte.config.ts renamed to svelte.config.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
import staticAdapter from '@sveltejs/adapter-static'
2-
import type { Config } from '@sveltejs/kit'
3-
import preprocess from 'svelte-preprocess'
2+
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
43

5-
const config: Config = {
4+
/** @type {import('@sveltejs/kit').Config} */
5+
const config = {
66
extensions: ['.svelte', '.md'],
77

8-
preprocess: preprocess({
9-
typescript: true,
8+
preprocess: vitePreprocess({
9+
script: true,
1010
}),
1111

1212
kit: {
1313
adapter: staticAdapter(),
1414
prerender: {
15-
entries: ['*'],
1615
handleMissingId: 'warn',
1716
},
1817
},

0 commit comments

Comments
 (0)