summaryrefslogtreecommitdiff
path: root/src/client/svelte.config.ts
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-12-20 12:20:32 -0600
committerTim Keller <tjk@tjkeller.xyz>2025-12-20 12:20:32 -0600
commite4ff6c4028c33feac03bb32bbd0eda84d8138a8f (patch)
tree600eec12afdec59c4ced8a7356932766192ad4c2 /src/client/svelte.config.ts
parented9b272afedf93e3b5b4fba77e5213d07b976653 (diff)
downloadimmich-frame-e4ff6c4028c33feac03bb32bbd0eda84d8138a8f.tar.xz
immich-frame-e4ff6c4028c33feac03bb32bbd0eda84d8138a8f.zip
replace original client with static sveltekit site. Transition and refactor code for sveltekit. Add support for view transitions api.
Diffstat (limited to 'src/client/svelte.config.ts')
-rw-r--r--src/client/svelte.config.ts21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/client/svelte.config.ts b/src/client/svelte.config.ts
new file mode 100644
index 0000000..e6eb2e2
--- /dev/null
+++ b/src/client/svelte.config.ts
@@ -0,0 +1,21 @@
+import adapter from "@sveltejs/adapter-static"
+
+/** @type {import('@sveltejs/kit').Config} */
+const config = {
+ kit: {
+ output: {
+ bundleStrategy: "inline",
+ },
+ router: {
+ type: "hash",
+ },
+ adapter: adapter({
+ // default options are shown. On some platforms
+ // these options are set automatically — see below
+ pages: "../../dist",
+ fallback: "index.html",
+ })
+ }
+}
+
+export default config