Skip to content

Commit fd6e9c6

Browse files
committed
Removed build issues
1 parent 416b3ed commit fd6e9c6

10 files changed

Lines changed: 139 additions & 175 deletions

File tree

.github/workflows/deploy-to-gh-pages.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# https://github.com/maurer2/trickle-down-features/blob/main/.github/workflows/deploy-to-gh-pages.yml
33

44
# Simple workflow for deploying static content to GitHub Pages
5-
name: Deploy svelte (without sveltekit) app to GH pages
5+
name: Deploy sveltekit app to GH pages
66

77
on:
88
# Runs on pushes targeting the default branch
@@ -49,8 +49,7 @@ jobs:
4949
- name: Upload artifact
5050
uses: actions/upload-pages-artifact@v4
5151
with:
52-
# Upload dist folder
53-
path: './dist'
52+
path: './build'
5453
- name: Deploy to GitHub Pages
5554
id: deployment
5655
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dist-ssr
1414

1515
# SvelteKit
1616
.svelte-kit
17+
/build
1718

1819
# Editor directories and files
1920
.vscode/*

package.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"@catppuccin/palette": "^1.8.0",
1717
"@sveltejs/adapter-static": "^3.0.10",
1818
"@sveltejs/kit": "^2.58.0",
19-
"@sveltejs/vite-plugin-svelte": "^7.0.0",
2019
"@tsconfig/svelte": "^5.0.8",
2120
"@types/node": "^24.12.2",
2221
"fast-glob": "^3.3.3",
@@ -26,11 +25,24 @@
2625
"svelte": "^5.55.1",
2726
"svelte-check": "^4.4.6",
2827
"typescript": "~6.0.2",
29-
"vite": "^8.0.4"
28+
"vite": "^8.0.10"
3029
},
3130
"dependencies": {
3231
"csstype": "^3.2.3",
3332
"modern-normalize": "^3.0.1",
34-
"type-fest": "^5.5.0"
33+
"type-fest": "^5.6.0"
34+
},
35+
"pnpm": {
36+
"supportedArchitectures": {
37+
"cpu": [
38+
"arm64",
39+
"x64"
40+
],
41+
"os": [
42+
"darwin",
43+
"linux",
44+
"win32"
45+
]
46+
}
3547
}
3648
}

pnpm-lock.yaml

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

public/code.svg

Lines changed: 0 additions & 8 deletions
This file was deleted.

public/icons.svg

Lines changed: 0 additions & 24 deletions
This file was deleted.

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/404.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<h1>404</h1>
File renamed without changes.

svelte.config.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
11
import adapter from '@sveltejs/adapter-static';
2-
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
32

43
/** @type {import('@sveltejs/kit').Config} */
54
const config = {
6-
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
7-
// for more information about preprocessors
8-
preprocess: vitePreprocess(),
9-
105
compilerOptions: {
116
experimental: {
127
async: true,
138
},
149
},
15-
1610
kit: {
17-
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
18-
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
19-
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
2011
adapter: adapter({
12+
fallback: '404.html',
2113
pages: 'build',
2214
assets: 'build',
2315
fallback: undefined,
2416
precompress: false,
2517
strict: true,
26-
base: '/yesteryear-grids',
18+
base: process.env.NODE_ENV === 'production' ? '/yesteryear-grids' : '',
2719
}),
2820
},
2921
};

0 commit comments

Comments
 (0)