diff --git a/apps/editor/app/layout.tsx b/apps/editor/app/layout.tsx
index 65820005..ddb23ce8 100644
--- a/apps/editor/app/layout.tsx
+++ b/apps/editor/app/layout.tsx
@@ -1,5 +1,8 @@
import type { Metadata } from 'next'
import localFont from 'next/font/local'
+import { Analytics } from '@vercel/analytics/react'
+import { SpeedInsights } from '@vercel/speed-insights/next'
+import { VercelToolbar } from '@vercel/toolbar/next'
import { UsernameGate } from '@/features/community/components/username-gate'
import './globals.css'
@@ -13,8 +16,8 @@ const geistMono = localFont({
})
export const metadata: Metadata = {
- title: 'Create Next App',
- description: 'Generated by create next app',
+ title: 'Pascal Editor',
+ description: 'Open-source 3D building editor',
}
export default function RootLayout({
@@ -22,10 +25,15 @@ export default function RootLayout({
}: Readonly<{
children: React.ReactNode
}>) {
+ const shouldShowToolbar = process.env.NODE_ENV === 'development'
+
return (
{children}
+
+
+ {shouldShowToolbar && }
)
diff --git a/apps/editor/app/settings/page.tsx b/apps/editor/app/settings/page.tsx
index bae5a2df..f588597b 100644
--- a/apps/editor/app/settings/page.tsx
+++ b/apps/editor/app/settings/page.tsx
@@ -2,7 +2,7 @@ export const dynamic = 'force-dynamic'
import { redirect } from 'next/navigation'
import { getSession } from '@/features/community/lib/auth/server'
-import { getUserProfile } from '@/features/community/lib/auth/actions'
+import { getUserProfile, getConnectedAccounts } from '@/features/community/lib/auth/actions'
import { SettingsPage } from '@/features/community/components/settings-page'
export default async function Settings() {
@@ -11,7 +11,10 @@ export default async function Settings() {
redirect('/')
}
- const profile = await getUserProfile()
+ const [profile, connectedAccounts] = await Promise.all([
+ getUserProfile(),
+ getConnectedAccounts(),
+ ])
return (
)
}
diff --git a/apps/editor/features/community/components/profile-dropdown.tsx b/apps/editor/features/community/components/profile-dropdown.tsx
index b4653f5f..af50aa04 100644
--- a/apps/editor/features/community/components/profile-dropdown.tsx
+++ b/apps/editor/features/community/components/profile-dropdown.tsx
@@ -37,7 +37,7 @@ export function ProfileDropdown() {