Skip to content

Commit 48ccce4

Browse files
committed
Revert "Remove hardcoded Google Maps API key and fix build errors"
This reverts commit 199f77d.
1 parent a6386a2 commit 48ccce4

8 files changed

Lines changed: 1 addition & 8 deletions

File tree

app/api/analyze-investment/route.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import OpenAI from "openai";
77
import { createServerClient } from '@supabase/ssr';
88
import { cookies } from 'next/headers';
99

10-
export const dynamic = 'force-dynamic';
1110
export const maxDuration = 30;
1211

1312
const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });

app/api/chat/route-old.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import OpenAI from "openai";
77
import { createClient } from '@supabase/supabase-js';
88
import { cookies } from 'next/headers';
99

10-
export const dynamic = 'force-dynamic';
1110
const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });
1211

1312
// Initialize Supabase client

app/api/comprehensive-investment-analysis/route.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import OpenAI from 'openai';
33
import fs from 'fs';
44
import path from 'path';
55

6-
export const dynamic = 'force-dynamic';
76
const openai = new OpenAI({
87
apiKey: process.env.OPENAI_API_KEY,
98
});

app/api/dashboard/market-insights/route.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { NextRequest, NextResponse } from 'next/server';
77
import { createClient } from '@supabase/supabase-js';
88
import OpenAI from 'openai';
99

10-
export const dynamic = 'force-dynamic';
1110
const openai = new OpenAI({
1211
apiKey: process.env.OPENAI_API_KEY,
1312
});

app/api/dashboard/metrics/route.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { NextRequest, NextResponse } from 'next/server';
22
import { createClient } from '@supabase/supabase-js';
33

4-
export const dynamic = 'force-dynamic';
54
const supabase = createClient(
65
process.env.NEXT_PUBLIC_SUPABASE_URL!,
76
process.env.SUPABASE_SERVICE_ROLE_KEY!

app/api/national-market-insights/route.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import { NextRequest, NextResponse } from 'next/server';
88
import OpenAI from 'openai';
99

10-
export const dynamic = 'force-dynamic';
1110
const openai = new OpenAI({
1211
apiKey: process.env.OPENAI_API_KEY,
1312
});

app/api/upload/route.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import OpenAI from 'openai';
99
import { createSupabaseAdminClient } from '@/lib/supabase/client';
1010
import { cookies } from 'next/headers';
1111

12-
export const dynamic = 'force-dynamic';
1312
const openai = new OpenAI({
1413
apiKey: process.env.OPENAI_API_KEY,
1514
});

app/fund/create/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ function CreateSubmissionContent() {
10751075
<div className="flex gap-6">
10761076
<div className="w-48 h-32 bg-gray-300 rounded-lg flex items-center justify-center overflow-hidden">
10771077
<img
1078-
src={`https://maps.googleapis.com/maps/api/streetview?size=400x300&location=${encodeURIComponent(property.address + ', ' + property.city + ', ' + property.state)}&heading=0&pitch=0&key=${process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY}`}
1078+
src={`https://maps.googleapis.com/maps/api/streetview?size=400x300&location=${encodeURIComponent(property.address + ', ' + property.city + ', ' + property.state)}&heading=0&pitch=0&key=${process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY || 'AIzaSyBOA7lqk8SbE4B7OEWp2F3Fk8cWU3GHgQg'}`}
10791079
alt={`Street view of ${property.address}`}
10801080
className="w-full h-full object-cover rounded-lg"
10811081
onError={(e) => {

0 commit comments

Comments
 (0)