Skip to content

Commit

Permalink
Use hostname as default global address
Browse files Browse the repository at this point in the history
This way someone using Cockpit as an extension will always have it auto-connecting correctly.
If running in development node, keep 'blueos.local' as global address.
  • Loading branch information
rafaellehmkuhl committed Aug 18, 2023
1 parent bdfc2c2 commit b6b36b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assets/defaults.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type MiniWidgetProfile, MiniWidgetType } from '@/types/miniWidgets'
import { type Profile, WidgetType } from '@/types/widgets'

export const defaultGlobalAddress = 'blueos.local'
export const defaultGlobalAddress = process.env.NODE_ENV === 'development' ? 'blueos.local' : window.location.hostname
export const widgetProfiles: { [key: string]: Profile } = {
'c2bcf04d-048f-496f-9d78-fc4002608028': {
name: 'Default Cockpit profile',
Expand Down

0 comments on commit b6b36b5

Please sign in to comment.