Skip to content

Commit b1f3b2d

Browse files
committed
attempt fix deployment
1 parent 1461b79 commit b1f3b2d

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

.github/workflows/pages.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ jobs:
4040
- name: Upload Artifacts
4141
uses: actions/upload-pages-artifact@v3
4242
with:
43-
# this should match the `pages` option in your adapter-static options
4443
path: 'build/'
4544

4645
deploy:

src/routes/+layout.svelte

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<script lang="ts">
2-
import { page } from '$app/state';
32
import BreakpointProvider from '$lib/components/breakpoint-provider.svelte';
43
import ScrollProvider from '$lib/components/scroll-provider.svelte';
54
import ThemeProvider from '$lib/components/theme-provider.svelte';
6-
import { locales, localizeHref } from '$lib/i18n/generated/runtime';
75
import '@fontsource-variable/figtree';
86
import '@fontsource/dm-mono';
97
import '@fontsource/instrument-serif';
@@ -16,9 +14,9 @@
1614
<BreakpointProvider />
1715
<ThemeProvider />
1816
<!-- see https://inlang.com/m/gerre34r/library-inlang-paraglideJs/sveltekit#add-the-paraglidemiddleware-to-srchooksserverts -->
19-
<div class="hidden">
17+
<!-- <div class="hidden">
2018
{#each locales as locale (locale)}
2119
<a href={localizeHref(page.url.pathname, { locale })}>{locale}</a>
2220
{/each}
23-
</div>
21+
</div> -->
2422
{@render children()}

svelte.config.js

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
import adapter from '@sveltejs/adapter-static';
2+
import i18n from './project.inlang/settings.json' with { type: 'json' };
23

34
export const extensions = ['.md'];
45

56
/** @type {import('@sveltejs/kit').Config} */
67
const config = {
78
extensions: ['.svelte', ...extensions],
89
kit: {
9-
// prerender: {
10-
// entries: [
11-
// '*',
12-
// ...i18n.locales.map(
13-
// (locale) => /** @type {`/${string}`} */ (`/${locale}`),
14-
// ),
15-
// ],
16-
// },
17-
adapter: adapter({ fallback: '404.html' }),
10+
prerender: {
11+
entries: [
12+
'*',
13+
...i18n.locales.map(
14+
(locale) => /** @type {`/${string}`} */ (`/${locale}`),
15+
),
16+
],
17+
},
18+
adapter: adapter({
19+
pages: 'build',
20+
fallback: 'index.html',
21+
assets: 'build',
22+
strict: true,
23+
}),
1824
alias: {
1925
$messages: 'src/lib/i18n/generated/messages.js',
2026
},

0 commit comments

Comments
 (0)