mirror of https://github.com/kortix-ai/suna.git
Merge pull request #820 from escapade-mckv/redis-import-fix
Redis import fix
This commit is contained in:
commit
299f5c6482
|
@ -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
|
||||||
|
|
|
@ -3,11 +3,11 @@ import logging
|
||||||
import os
|
import os
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from typing import Dict, List, Optional
|
from typing import Dict, List, Optional
|
||||||
|
import sys
|
||||||
from services import redis
|
from services import redis
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class FeatureFlagManager:
|
class FeatureFlagManager:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""Initialize with existing Redis service"""
|
"""Initialize with existing Redis service"""
|
||||||
|
|
|
@ -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