Commit inicial - upload de todos os arquivos da pasta

This commit is contained in:
2026-01-04 16:14:31 -03:00
commit e3ed1a734b
310 changed files with 62749 additions and 0 deletions

15
frontend/lib/env.ts Normal file
View File

@@ -0,0 +1,15 @@
import { env } from 'next-runtime-env';
export const getEnv = (key: string, defaultValue?: string): string => {
try {
const value = env(key);
return value || defaultValue || '';
} catch (error) {
console.error(`Error getting environment variable ${key}:`, error);
return defaultValue || '';
}
};
export const getApiUrl = (): string => {
return getEnv('NEXT_PUBLIC_API_URL', 'https://api-evoai.evoapicloud.com');
};