Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "app",
"private": true,
"version": "0.2.1",
"version": "0.3.0",
"type": "module",
"scripts": {
"dev": "vite dev",
Expand Down
9 changes: 9 additions & 0 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<!--
Disable Safari's automatic phone-number / email / address / date
detection. When enabled (default), Safari rewrites the DOM BEFORE
Svelte hydration runs — which breaks hydration parity, causes
SvelteKit to fall back to a client-only re-render, and makes
lifecycle hooks (onMount / $effect) look flaky. See
github.com/sveltejs/svelte/issues/17357.
-->
<meta name="format-detection" content="telephone=no, date=no, address=no, email=no" />
<meta name="theme-color" content="#0D0F11" />
<meta name="description" content="Personal operations system powered by Alfred" />
<meta name="apple-mobile-web-app-capable" content="yes" />
Expand Down
7 changes: 6 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ export default defineConfig({
SvelteKitPWA({
srcDir: 'src',
strategies: 'injectManifest',
registerType: 'prompt',
// `autoUpdate` silently replaces the SW as soon as a new version
// is detected, vs `prompt` which requires a user tap. iOS
// standalone PWAs can't easily surface that prompt (no reliable
// beforeinstallprompt-equivalent) and can get stuck on a broken
// old SW indefinitely — see github.com/sveltejs/svelte/issues/12313.
registerType: 'autoUpdate',
injectManifest: {
globPatterns: ['client/**/*.{js,css,ico,png,svg,webp,woff,woff2}']
},
Expand Down
Loading