Skip to content
Draft
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
4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import { inject } from '@vercel/analytics';
const game = new Phaser.Game(createGameConfig([BootScene, MenuScene, GameScene, GameOverScene]));

// Initialize Vercel Web Analytics
inject();
inject({
mode: (import.meta as any).env?.DEV ? 'development' : 'production',
});

// Expose game instance for debugging in development only
if ((import.meta as any).env?.DEV) {
Expand Down