Skip to content

Commit

Permalink
Improve config
Browse files Browse the repository at this point in the history
  • Loading branch information
bndkt committed Jan 20, 2024
1 parent 0dfd9bb commit a3a0cd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/app/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export const config = {
vexoApiKey: process.env.EXPO_PUBLIC_VEXO_API_KEY as string,
supabaseUrl: process.env.EXPO_PUBLIC_SUPABASE_URL as string,
supabaseAnonKey: process.env.EXPO_PUBLIC_SUPABASE_ANON_KEY as string,
sanityProjectId: process.env.EXPO_PUBLIC_SANITY_PROJECT_ID as string,
};
4 changes: 3 additions & 1 deletion apps/app/src/lib/sanity.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { createClient } from "@sanity/client";

import { config } from "./config";

export const client = createClient({
projectId: process.env.EXPO_PUBLIC_SANITY_PROJECT_ID as string,
projectId: config.sanityProjectId,
dataset: "production",
useCdn: true,
apiVersion: "2023-09-21",
Expand Down

0 comments on commit a3a0cd9

Please sign in to comment.