Skip to content

Commit e1a1863

Browse files
committed
chore: trying to fix github pages deployment
1 parent a47dbee commit e1a1863

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
- name: Upload GitHub Pages artifact
5959
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
6060
with:
61-
path: dist
61+
path: build
6262

6363
- name: Deploy GitHub Pages site
6464
id: deployment

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"devDependencies": {
2828
"@playwright/test": "1.41.2",
2929
"@sveltejs/adapter-auto": "3.1.1",
30+
"@sveltejs/adapter-static": "^3.0.1",
3031
"@sveltejs/kit": "2.5.0",
3132
"@sveltejs/package": "2.2.6",
3233
"@sveltejs/vite-plugin-svelte": "3.0.2",

pnpm-lock.yaml

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

svelte.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import adapter from '@sveltejs/adapter-auto';
1+
import adapter from '@sveltejs/adapter-static';
22

33
/** @type {import('@sveltejs/kit').Config} */
44
const config = {
55
kit: {
66
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
77
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
88
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
9-
adapter: adapter()
9+
adapter: adapter({ fallback: '404.html' })
1010
}
1111
};
1212

0 commit comments

Comments
 (0)