Skip to content

Commit

Permalink
use env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
ws998116 committed Sep 15, 2024
1 parent c902d9e commit 7d6bb6f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.env
3 changes: 2 additions & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { themes as prismThemes } from 'prism-react-renderer'
import type { Config } from '@docusaurus/types'
import type * as Preset from '@docusaurus/preset-classic'
import 'dotenv/config'

const config: Config = {
title: 'Wyatt Smith',
Expand Down Expand Up @@ -53,7 +54,7 @@ const config: Config = {
[
'posthog-docusaurus',
{
apiKey: 'phc_tPQY6FDHGBosrMDvQUCL4Yzm25pKGJbNflCKNVtFmcO',
apiKey: process.env.POSTHOG_API_KEY,
enableInDevelopment: true, // optional
},
],
Expand Down
14 changes: 14 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@docusaurus/module-type-aliases": "3.5.2",
"@docusaurus/tsconfig": "3.5.2",
"@docusaurus/types": "3.5.2",
"dotenv": "^16.4.5",
"typescript": "~5.5.2"
},
"browserslist": {
Expand Down

0 comments on commit 7d6bb6f

Please sign in to comment.