Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
- disable linting rule since its applied in web/turbo.json
  • Loading branch information
ahmedhesham6 committed Jun 11, 2024
1 parent 5c0193c commit 49789e7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apps/marketing/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dependsOn": ["^build", "build"]
},
"build": {
"outputs": [".astro/**", "dist/**"]
"outputs": [".astro/**", "dist/**"],
"passThroughEnv": ["PUBLIC_POSTHOG_KEY", "PUBLIC_POSTHOG_HOST"]
}
}
}
8 changes: 6 additions & 2 deletions apps/web/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"AUTH_GITHUB_SECRET",
"AUTH_GOOGLE_ID",
"AUTH_GOOGLE_SECRET",
"AUTH_GOOGLE_CODE_VERIFIER"
"AUTH_GOOGLE_CODE_VERIFIER",
"NEXT_PUBLIC_POSTHOG_HOST",
"NEXT_PUBLIC_POSTHOG_KEY"
]
},
"test:e2e": {
Expand All @@ -30,7 +32,9 @@
"AUTH_GITHUB_SECRET",
"AUTH_GOOGLE_ID",
"AUTH_GOOGLE_SECRET",
"AUTH_GOOGLE_CODE_VERIFIER"
"AUTH_GOOGLE_CODE_VERIFIER",
"NEXT_PUBLIC_POSTHOG_HOST",
"NEXT_PUBLIC_POSTHOG_KEY"
]
}
}
Expand Down
2 changes: 2 additions & 0 deletions packages/env/src/web/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export const env = createEnv({
},
experimental__runtimeEnv: {
NODE_ENV: process.env.NODE_ENV,
// eslint-disable-next-line turbo/no-undeclared-env-vars
NEXT_PUBLIC_POSTHOG_KEY: process.env['NEXT_PUBLIC_POSTHOG_KEY'],
// eslint-disable-next-line turbo/no-undeclared-env-vars
NEXT_PUBLIC_POSTHOG_HOST: process.env['NEXT_PUBLIC_POSTHOG_HOST'],
},
emptyStringAsUndefined: true,
Expand Down

0 comments on commit 49789e7

Please sign in to comment.