Skip to content

Commit e19cdbb

Browse files
committed
Now with correct building instructions
1 parent ce4e7ca commit e19cdbb

4 files changed

Lines changed: 20 additions & 5 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ Also works with something else with a touchscreen
88
1. Install dependencies with `deno install`
99
2. Build with `deno task build`
1010

11-
The output is in `.svelte-kit/output/client/`.
11+
The output is in `build`.
1212

1313
> [!NOTE]
14-
> The server output is not needed, as this is a CSR Application
14+
> The server output is not needed, as this is a CSR Application.
15+
> But a server is needed to comply with CORS.

deno.lock

Lines changed: 8 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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"prepare": "svelte-kit sync || echo ''"
1111
},
1212
"dependencies": {
13-
"@deno/vite-plugin": "^1.0.4"
13+
"@deno/vite-plugin": "^1.0.4",
14+
"@sveltejs/adapter-static": "^3.0.8"
1415
},
1516
"devDependencies": {
1617
"@sveltejs/adapter-auto": "^4.0.0",

svelte.config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
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://svelte.dev/docs/kit/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://svelte.dev/docs/kit/adapters for more information about adapters.
9-
adapter: adapter(),
9+
adapter: adapter({
10+
fallback: 'index.html'
11+
}),
12+
paths: {
13+
base: ''
14+
}
1015
},
1116
};
1217

0 commit comments

Comments
 (0)