mirror of https://github.com/kortix-ai/suna.git
fix: redis import fix
This commit is contained in:
parent
d1d881dbc5
commit
8a943d9374
|
@ -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
|
||||||
|
|
|
@ -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__)
|
||||||
|
|
|
@ -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}</>;
|
||||||
|
}
|
Loading…
Reference in New Issue