fix: redis import fix

This commit is contained in:
Soumyadas15 2025-06-24 14:34:13 +05:30
parent d1d881dbc5
commit 8a943d9374
3 changed files with 26 additions and 3 deletions

View File

@ -17,6 +17,7 @@ ENV WORKERS=33
ENV THREADS=2 ENV THREADS=2
ENV WORKER_CONNECTIONS=2000 ENV WORKER_CONNECTIONS=2000
ENV PYTHONPATH=/app
EXPOSE 8000 EXPOSE 8000
# Gunicorn configuration # Gunicorn configuration

View File

@ -4,9 +4,6 @@ import os
from datetime import datetime from datetime import datetime
from typing import Dict, List, Optional from typing import Dict, List, Optional
import sys import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from services import redis from services import redis
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@ -0,0 +1,25 @@
import { isFlagEnabled } from '@/lib/feature-flags';
import { Metadata } from 'next';
import { redirect } from 'next/navigation';
export const metadata: Metadata = {
title: 'Credentials | Kortix Suna',
description: 'Create and manage credentials to your services',
openGraph: {
title: 'Credentials | Kortix Suna',
description: 'Create and manage credentials to your services',
type: 'website',
},
};
export default async function CredentialsLayout({
children,
}: {
children: React.ReactNode;
}) {
const customAgentsEnabled = await isFlagEnabled('custom_agents');
if (!customAgentsEnabled) {
redirect('/dashboard');
}
return <>{children}</>;
}