- Change default PORT in .env.example to 7123 and update CORS origins - Disable speech features in .env.example for a cleaner setup - Modify Dockerfile to streamline Python dependency installation and improve build performance - Add fix-env.js script to ensure NODE_ENV is set correctly before application starts - Update smithery.yaml to include new Home Assistant connection parameters - Introduce start.sh script to set NODE_ENV and start the application
10 lines
324 B
JavaScript
10 lines
324 B
JavaScript
// This script fixes the NODE_ENV environment variable before any imports
|
|
console.log('Setting NODE_ENV to "development" before imports');
|
|
process.env.NODE_ENV = "development";
|
|
|
|
// Add more debugging
|
|
console.log(`NODE_ENV is now set to: "${process.env.NODE_ENV}"`);
|
|
|
|
// Import the main application
|
|
import './dist/index.js';
|