managarten/apps-archived/uload/scripts/test-env.js
Till-JS 61d181fbc2 chore: archive inactive projects to apps-archived/
Move inactive projects out of active workspace:
- bauntown (community website)
- maerchenzauber (AI story generation)
- memoro (voice memo app)
- news (news aggregation)
- nutriphi (nutrition tracking)
- reader (reading app)
- uload (URL shortener)
- wisekeep (AI wisdom extraction)

Update CLAUDE.md documentation:
- Add presi to active projects
- Document archived projects section
- Update workspace configuration

Archived apps can be re-activated by moving back to apps/

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 07:03:59 +01:00

30 lines
1 KiB
JavaScript

// Test which PocketBase URL is being used
console.log('Testing Environment Variables:');
console.log('----------------------------');
console.log('NODE_ENV:', process.env.NODE_ENV);
console.log('PUBLIC_POCKETBASE_URL:', process.env.PUBLIC_POCKETBASE_URL);
// Check if .env file exists
const fs = require('fs');
const path = require('path');
const envFiles = ['.env', '.env.development', '.env.production'];
envFiles.forEach((file) => {
const filePath = path.join(__dirname, file);
if (fs.existsSync(filePath)) {
console.log(`\n${file} exists`);
const content = fs.readFileSync(filePath, 'utf8');
const lines = content.split('\n');
lines.forEach((line) => {
if (line.includes('POCKETBASE_URL')) {
console.log(` -> ${line}`);
}
});
}
});
console.log('\nNOTE: SvelteKit/Vite loads environment variables differently.');
console.log('The app should use:');
console.log('- Development: http://localhost:8090 (from .env or fallback)');
console.log('- Production: https://pb.ulo.ad (from .env.production)');