File tree Expand file tree Collapse file tree 3 files changed +17
-14
lines changed
Expand file tree Collapse file tree 3 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 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' ;
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 ()}
Original file line number Diff line number Diff line change 11import adapter from '@sveltejs/adapter-static' ;
2+ import i18n from './project.inlang/settings.json' with { type : 'json' } ;
23
34export const extensions = [ '.md' ] ;
45
56/** @type {import('@sveltejs/kit').Config } */
67const 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 } ,
You can’t perform that action at this time.
0 commit comments