diff --git a/src/app/api/upload-to-cdn/route.ts b/src/app/api/upload-to-cdn/route.ts index 35167c03..9f34d64a 100644 --- a/src/app/api/upload-to-cdn/route.ts +++ b/src/app/api/upload-to-cdn/route.ts @@ -1,9 +1,10 @@ +import { serverEnv } from '@/env/server'; import { NextResponse } from 'next/server'; import { v4 as uuidv4 } from 'uuid'; -const CDN_BASE_UPLOAD_URL = process.env.CDN_BASE_UPLOAD_URL; -const CDN_BASE_ACCESS_URL = process.env.CDN_BASE_ACCESS_URL; -const CDN_API_KEY = process.env.CDN_API_KEY!; +const CDN_BASE_UPLOAD_URL = serverEnv.CDN_BASE_UPLOAD_URL; +const CDN_BASE_ACCESS_URL = serverEnv.CDN_BASE_ACCESS_URL; +const CDN_API_KEY = serverEnv.CDN_API_KEY!; export async function POST(req: Request): Promise { try { diff --git a/src/components/gmaps-autosuggest.tsx b/src/components/gmaps-autosuggest.tsx index 761031c6..d6e6b76e 100644 --- a/src/components/gmaps-autosuggest.tsx +++ b/src/components/gmaps-autosuggest.tsx @@ -1,5 +1,6 @@ import Script from 'next/script'; import { Input } from './ui/input'; +import { clientEnv } from '@/env/client'; export type TgmapsAddress = { city: string; fullAddress: string }; @@ -26,7 +27,7 @@ export function GmapsAutocompleteAddress({ form }: { form: any }) { return ( <>