Skip to content

Commit

Permalink
Fix: WEB-727 Cleanup config (#6430)
Browse files Browse the repository at this point in the history
* Cleanup config

* Trigger Build

* load gt manager and algolia if envs

* Update algolia

* remove conditional

* Update algolia api key

* Update LP env vars

* update check all links
  • Loading branch information
carlagn authored Nov 18, 2024
1 parent 69ede4f commit d04ed47
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/check-all-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ jobs:
- name: Check internal links (docusaurus build)
env:
DOCUSAURUS_POST_HOG_KEY: ${{ secrets.DOCUSAURUS_POST_HOG_KEY }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
GT_CONTAINER_ID: ${{ secrets.GT_CONTAINER_ID }}
run: npm run clean && npm run build

check-for-redirects:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lost-pixel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ jobs:
- name: Build docs
env:
DOCUSAURUS_POST_HOG_KEY: ${{ secrets.DOCUSAURUS_POST_HOG_KEY }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
GT_CONTAINER_ID: ${{ secrets.GT_CONTAINER_ID }}
run: npm run clean && npm run build

- name: Start docs
Expand Down
16 changes: 9 additions & 7 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ const config: Config = {
"docusaurus-plugin-sass",
[path.resolve(__dirname, 'client-plugins', 'posthog-docusaurus'),
{
apiKey: "phc_cmc85avbWyuJ2JyKdGPdv7dxXli8xLdWDBPbvIXWJfs",
appUrl: "https://proxyhog.prisma-data.net",
apiKey: DOCUSAURUS_POST_HOG_KEY,
appUrl: DOCUSAURUS_BASE_URL,
person_profiles: "identified_only",
enableInDevelopment: false
},
Expand All @@ -86,8 +86,10 @@ const config: Config = {
[
"classic",
{
googleTagManager: {
containerId: "GTM-KCGZPWB",
...process.env.GT_CONTAINER_ID && {
googleTagManager: {
containerId: process.env.GT_CONTAINER_ID,
}
},
sitemap: {
// @ts-ignore
Expand Down Expand Up @@ -229,14 +231,14 @@ const config: Config = {
],
},
algolia: {
appId: "MF58UJZ648",
apiKey: "fd3d0a05bfe5d280348060ca5ea416be",
appId: process.env.ALGOLIA_APP_ID,
apiKey: process.env.ALGOLIA_API_KEY,
indexName: "prisma",
contextualSearch: false,
replaceSearchResultPathname: {
from: "/docs/",
to: DOCUSAURUS_BASE_URL,
},
}
},
footer: {
style: "dark",
Expand Down

0 comments on commit d04ed47

Please sign in to comment.