Skip to content

Commit 7ad7583

Browse files
committed
uncomment speed insights in prod
1 parent f4053f7 commit 7ad7583

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/svelte.dev/src/routes/+layout.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
import { beforeNavigate } from '$app/navigation';
1111
import { get_banner, get_nav_links } from './data.remote.js';
1212
13-
// injectSpeedInsights();
14-
// inject({ mode: dev ? 'development' : 'production' });
13+
if (!dev) {
14+
injectSpeedInsights();
15+
inject({ mode: 'production' });
16+
}
1517
1618
// Make all navigations between SvelteKit-tutorial and non-SvelteKit-tutorial pages (and vice versa)
1719
// a full page navigation to ensure webcontainers get the correct origin restriction headers while

0 commit comments

Comments
 (0)