Skip to content

Commit faebb69

Browse files
✨ Update electronGitHubVersion sharing logic for production and development environments
1 parent aa8b563 commit faebb69

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ public function boot(): void
2626

2727
private function registerSharedViewVariables(): void
2828
{
29-
View::share('electronGitHubVersion', GitHub::electron()->latestVersion());
29+
if (app()->environment('production')) {
30+
View::share('electronGitHubVersion', GitHub::electron()->latestVersion());
31+
} else {
32+
View::share('electronGitHubVersion', 'dev');
33+
}
3034
View::share('discordLink', 'https://discord.gg/X62tWNStZK');
3135
View::share('bskyLink', 'https://bsky.app/profile/nativephp.bsky.social');
3236
View::share('openCollectiveLink', 'https://opencollective.com/nativephp');

0 commit comments

Comments
 (0)