Skip to content
Merged
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
6 changes: 4 additions & 2 deletions apps/svelte.dev/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
import { inject } from '@vercel/analytics';
import { beforeNavigate } from '$app/navigation';

injectSpeedInsights();
inject({ mode: dev ? 'development' : 'production' });
if (!dev) {
injectSpeedInsights();
inject({ mode: 'production' });
}

// Make all navigations between SvelteKit-tutorial and non-SvelteKit-tutorial pages (and vice versa)
// a full page navigation to ensure webcontainers get the correct origin restriction headers while
Expand Down