diff --git a/package.json b/package.json index bcc3448..56ae0fe 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,6 @@ "private": true, "scripts": { "dev": "next dev", - "prebuild": "node scripts/setup-config.js", "build": "next build", "start": "next start", "lint": "next lint" diff --git a/scripts/setup-config.js b/scripts/setup-config.js index 9139c36..378ec89 100644 --- a/scripts/setup-config.js +++ b/scripts/setup-config.js @@ -1,37 +1,9 @@ #!/usr/bin/env node /** - * Setup script: creates config.json from example if it doesn't exist. - * Runs during build phase. + * This script is no longer needed. + * Configuration is now entirely env-driven via .env variables. */ -const fs = require('fs') -const path = require('path') - -const projectRoot = path.join(__dirname, '..') -const configPath = path.join(projectRoot, 'src', 'config', 'config.json') -const examplePath = path.join(projectRoot, 'src', 'config', 'config.json.example') - -// Check if config.json exists -if (fs.existsSync(configPath)) { - console.log('✓ config.json found') - process.exit(0) -} - -// Check if example exists -if (!fs.existsSync(examplePath)) { - console.error('✗ config.json.example not found at', examplePath) - process.exit(1) -} - -// Copy example to config.json -try { - const exampleContent = fs.readFileSync(examplePath, 'utf8') - fs.writeFileSync(configPath, exampleContent) - console.log('✓ config.json created from example') - process.exit(0) -} catch (err) { - console.error('✗ Failed to create config.json:', err.message) - process.exit(1) -} - +console.log('✓ Config is now env-driven; no setup needed.') +process.exit(0)