Skip to content

Commit aeea41b

Browse files
committed
Let's get it up and live now
1 parent 0ae291e commit aeea41b

File tree

7 files changed

+49
-8
lines changed

7 files changed

+49
-8
lines changed

package-lock.json

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"devDependencies": {
1515
"@inlang/paraglide-js": "^2.0.0",
1616
"@sveltejs/adapter-auto": "^6.0.0",
17-
"@sveltejs/adapter-static": "^3.0.0",
17+
"@sveltejs/adapter-static": "^3.0.9",
1818
"@sveltejs/kit": "^2.22.0",
1919
"@sveltejs/vite-plugin-svelte": "^6.0.0",
2020
"@tailwindcss/vite": "^4.0.0",

src/app.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
<meta property="twitter:image" content="%sveltekit.assets%/images/banner.png" />
2929

3030
<!-- Favicons -->
31-
<link rel="icon" type="image/png" href="%sveltekit.assets%/favicon/favicon-16x16.png?v=1" sizes="16x16" />
32-
<link rel="icon" type="image/png" href="%sveltekit.assets%/favicon/favicon-32x32.png?v=1" sizes="32x32" />
3331
<link rel="icon" type="image/png" href="%sveltekit.assets%/favicon/favicon-96x96.png?v=1" sizes="96x96" />
3432
<link rel="icon" type="image/svg+xml" href="%sveltekit.assets%/favicon/favicon.svg?v=1" />
3533
<link rel="shortcut icon" href="%sveltekit.assets%/favicon/favicon.ico?v=1" />
12.4 KB
Loading

src/routes/+layout.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const prerender = true;

src/routes/+page.svelte

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import packetTracersImg from "$lib/assets/images/projects/packet_tracers.png";
1717
import luxMundiImg from "$lib/assets/images/projects/lux_mundi.png";
1818
import dichotomiaImg from "$lib/assets/images/projects/dichotomia.png";
19+
import atWorldsEndImg from "$lib/assets/images/projects/awe.png";
1920
import gamecampImg from "$lib/assets/images/events/taltech_gamecamp.jpg";
2021
import gamedevGuildImg from "$lib/assets/images/events/gamedev_guild.png";
2122
import taltechItImg from "$lib/assets/images/orgs/taltech_it.jpg";
@@ -100,7 +101,11 @@
100101
on:click={scrollToTop}
101102
aria-label="Scroll to top"
102103
>
103-
<img src={`${base}/favicon/favicon.svg`} alt="AlacrisDevs Logo" class="w-10 h-10" />
104+
<img
105+
src={`${base}/favicon/favicon.svg`}
106+
alt="AlacrisDevs Logo"
107+
class="w-10 h-10"
108+
/>
104109
</button>
105110

106111
<!-- Desktop Navigation -->
@@ -356,7 +361,7 @@
356361
target="_blank"
357362
/>
358363
<Card
359-
imageSrc={luxMundiImg}
364+
imageSrc={atWorldsEndImg}
360365
imageAlt={m.projects_awe_title()}
361366
title={m.projects_awe_title()}
362367
description={m.projects_awe_desc()}
@@ -605,6 +610,10 @@
605610
</footer>
606611

607612
<style>
608-
.translate-y-6 { transform: translateY(1.5rem); }
609-
.translate-y-0 { transform: translateY(0); }
613+
.translate-y-6 {
614+
transform: translateY(1.5rem);
615+
}
616+
.translate-y-0 {
617+
transform: translateY(0);
618+
}
610619
</style>

svelte.config.js

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,32 @@ const config = {
1111

1212
kit: {
1313
adapter: adapter({
14-
fallback: '200.html'
14+
// Use explicit defaults and keep SPA fallback for GitHub Pages deep links
15+
pages: 'build',
16+
assets: 'build',
17+
fallback: '200.html',
18+
precompress: false,
19+
strict: true
1520
}),
1621
paths: {
1722
base: basePath
23+
},
24+
prerender: {
25+
// Avoid build failures if the crawler hits asset URLs (e.g., favicons)
26+
handleHttpError: ({ path, status }) => {
27+
if (
28+
path.startsWith('/favicon/') ||
29+
path.endsWith('.png') ||
30+
path.endsWith('.svg') ||
31+
path.endsWith('.ico') ||
32+
path.endsWith('.webmanifest') ||
33+
status === 404
34+
) {
35+
return;
36+
}
37+
// Re-throw other errors to surface real issues
38+
throw new Error(`Prerender error at ${path} (status ${status})`);
39+
}
1840
}
1941
}
2042
};

0 commit comments

Comments
 (0)