Skip to content

Commit 30f8740

Browse files
committed
fix: Attempt to fix apple mapkit missing error
1 parent 13094a5 commit 30f8740

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

nuxt.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ export default defineNuxtConfig({
3434
runtimeConfig: {
3535
googleApiKey: process.env.NUXT_GOOGLE_API_KEY,
3636
googleProgrammableSearchEngineId: process.env.NUXT_GOOGLE_PROGRAMMABLE_SEARCH_ENGINE_ID,
37-
appleMapKitTeamId: process.env.NUXT_APPLE_MAPKIT_TEAM_ID,
38-
appleMapKitKeyId: process.env.NUXT_APPLE_MAPKIT_KEY_ID,
39-
appleMapKitPrivateKey: process.env.NUXT_APPLE_MAPKIT_PRIVATE_KEY,
37+
appleMapkitTeamId: process.env.NUXT_APPLE_MAPKIT_TEAM_ID,
38+
appleMapkitKeyId: process.env.NUXT_APPLE_MAPKIT_KEY_ID,
39+
appleMapkitPrivateKey: process.env.NUXT_APPLE_MAPKIT_PRIVATE_KEY,
4040
public: {
4141
googleApiKey: process.env.NUXT_PUBLIC_GOOGLE_API_KEY,
4242
posthogPublicKey: 'phc_NnyL6hYZBsre2WNUDrU3Zu6CDN7dpntH7stqhB0dnzu'

server/utils/appleMapKitToken.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ export async function generateAppleMapKitToken(): Promise<string> {
1717
const config = useRuntimeConfig()
1818

1919
// Check if we have environment variables for generating tokens
20-
const teamId = config.appleMapKitTeamId
21-
const keyId = config.appleMapKitKeyId
22-
const privateKey = config.appleMapKitPrivateKey ? base64ToUtf8(config.appleMapKitPrivateKey) : undefined
20+
const teamId = config.appleMapkitTeamId
21+
const keyId = config.appleMapkitKeyId
22+
const privateKey = config.appleMapkitPrivateKey ? base64ToUtf8(config.appleMapkitPrivateKey) : undefined
2323

2424
if (!teamId || !keyId || !privateKey) {
2525
throw createError({

0 commit comments

Comments
 (0)