Update dashboard community links to use env vars, add deploy configs

- Dashboard community links now use .env values like community page
- Removed hardcoded social media URLs from dashboard
- Added deploy folder with nginx and systemd service configs
- Moved linktree page to public route
- Various backend and auth context updates
This commit is contained in:
root
2026-01-29 20:59:25 +00:00
parent 651a10dc9c
commit 0190a0497c
11 changed files with 302 additions and 49 deletions

View File

@@ -5,7 +5,7 @@
"scripts": {
"dev": "tsx watch src/index.ts",
"build": "tsc",
"start": "node dist/index.js",
"start": "NODE_ENV=production node dist/index.js",
"db:generate": "drizzle-kit generate",
"db:migrate": "tsx src/db/migrate.ts",
"db:studio": "drizzle-kit studio"

View File

@@ -25,10 +25,14 @@ const app = new Hono();
// Middleware
app.use('*', logger());
app.use('*', cors({
origin: process.env.FRONTEND_URL || 'http://localhost:3002',
credentials: true,
}));
// CORS: Only enable in development. In production, nginx handles CORS.
if (process.env.NODE_ENV !== 'production') {
app.use('*', cors({
origin: process.env.FRONTEND_URL || 'http://localhost:3002',
credentials: true,
}));
}
// OpenAPI specification
const openApiSpec = {