add openai package

This commit is contained in:
Danel Kungla
2025-09-17 11:51:39 +03:00
parent eda21b8a99
commit f7f0e5e48f
4 changed files with 279 additions and 66 deletions

View File

@@ -12,6 +12,7 @@ import { withI18n } from '~/lib/i18n/with-i18n';
import Dashboard from '../_components/dashboard';
import DashboardCards from '../_components/dashboard-cards';
import Recommendations from '../_components/recommendations';
import { loadCurrentUserAccount } from '../_lib/server/load-user-account';
export const generateMetadata = async () => {
@@ -24,6 +25,7 @@ export const generateMetadata = async () => {
};
async function UserHomePage() {
console.log('process.env', process.env.OPENAI_API_KEY);
const client = getSupabaseServerClient();
const { account } = await loadCurrentUserAccount();
@@ -48,6 +50,8 @@ async function UserHomePage() {
/>
<PageBody>
<Dashboard account={account} bmiThresholds={bmiThresholds} />
<Recommendations />
</PageBody>
</>
);