mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-17 00:59:40 +02:00
feat: integrate uload and picture, unify package naming
- Add uload project with apps/web structure
- Reorganize from flat to monorepo structure
- Remove PocketBase binary and local data
- Update to pnpm and @uload/web namespace
- Add picture project to monorepo
- Remove embedded git repository
- Unify all package names to @{project}/{app} schema:
- @maerchenzauber/* (was @storyteller/*)
- @manacore/* (was manacore-*, manacore)
- @manadeck/* (was web, backend, manadeck)
- @memoro/* (was memoro-web, landing, memoro)
- @picture/* (already unified)
- @uload/web
- Add convenient dev scripts for all apps:
- pnpm dev:{project}:web
- pnpm dev:{project}:landing
- pnpm dev:{project}:mobile
- pnpm dev:{project}:backend
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
c6c4c5a552
commit
c712a2504a
1031 changed files with 189301 additions and 290 deletions
34
uload/scripts/test-env.mjs
Normal file
34
uload/scripts/test-env.mjs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
// Test which PocketBase URL is being used
|
||||
import { readFileSync, existsSync } from 'fs';
|
||||
import { join } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
import { dirname } from 'path';
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
|
||||
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);
|
||||
|
||||
const envFiles = ['.env', '.env.development', '.env.production'];
|
||||
|
||||
envFiles.forEach(file => {
|
||||
const filePath = join(__dirname, file);
|
||||
if (existsSync(filePath)) {
|
||||
console.log(`\n${file} exists`);
|
||||
const content = 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)');
|
||||
Loading…
Add table
Add a link
Reference in a new issue