mirror of
https://github.com/bretzel-app/crumbs.git
synced 2026-10-12 20:06:57 +02:00
The Svelte 5 SSR compiler was optimizing away the __APP_VERSION__ constant set via Vite's define, causing the version to be missing from the production footer. Use a +layout.server.ts load function to pass the version from package.json instead. Also bumps version to 0.1.6. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
6 lines
107 B
TypeScript
6 lines
107 B
TypeScript
import { version } from '../../package.json';
|
|
|
|
export function load() {
|
|
return { appVersion: version };
|
|
}
|