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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user