pi-kiosk-shared 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -105,6 +105,13 @@ const getCurrentEnvironment = () => {
105
105
  // Ignore errors, fall back to default
106
106
  }
107
107
  }
108
+ // Additional check: if we're on a Railway domain, assume production
109
+ if (!nodeEnv && typeof window !== 'undefined' && window.location) {
110
+ if (window.location.hostname.includes('railway.app') ||
111
+ window.location.hostname.includes('up.railway.app')) {
112
+ return 'production';
113
+ }
114
+ }
108
115
  return nodeEnv === 'production' ? 'production' : 'development';
109
116
  };
110
117
  exports.getCurrentEnvironment = getCurrentEnvironment;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-kiosk-shared",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "private": false,
5
5
  "description": "Shared components and utilities for Pi Kiosk system",
6
6
  "keywords": [