@@ -3,6 +3,7 @@ import type { Config } from "@docusaurus/types";
33import type * as Preset from "@docusaurus/preset-classic" ;
44import * as dotenv from "dotenv" ;
55import giscusInjector from "./src/plugins/giscus-injector" ;
6+ dotenv . config ( { path : ".env.local" } ) ;
67dotenv . config ( ) ;
78
89// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
@@ -38,7 +39,7 @@ const config: Config = {
3839
3940 onBrokenLinks : "throw" ,
4041 // onBrokenMarkdownLinks moved to markdown.hooks
41-
42+
4243 // Google Analytics and Theme Scripts
4344 scripts : [
4445 {
@@ -247,7 +248,7 @@ const config: Config = {
247248 {
248249 type : "html" ,
249250 position : "right" ,
250- value : '<div id="firebase -auth-github -navbar"></div>' ,
251+ value : '<div id="clerk -auth-navbar"></div>' ,
251252 } ,
252253 ] ,
253254 } ,
@@ -286,6 +287,7 @@ const config: Config = {
286287 // ✅ Add this customFields object to expose the token to the client-side
287288 customFields : {
288289 gitToken : process . env . DOCUSAURUS_GIT_TOKEN ,
290+ clerkPublishableKey : process . env . VITE_CLERK_PUBLISHABLE_KEY || "" ,
289291 // Shopify credentials for merch store
290292 SHOPIFY_STORE_DOMAIN :
291293 process . env . SHOPIFY_STORE_DOMAIN || "junh9v-gw.myshopify.com" ,
@@ -298,10 +300,10 @@ const config: Config = {
298300 EMAILJS_TEMPLATE_ID : process . env . EMAILJS_TEMPLATE_ID || "" ,
299301 algoliaSiteSearch : hasAlgoliaSiteSearch
300302 ? {
301- applicationId : algoliaAppId ,
302- apiKey : algoliaSearchApiKey ,
303- indexName : algoliaIndexName ,
304- }
303+ applicationId : algoliaAppId ,
304+ apiKey : algoliaSearchApiKey ,
305+ indexName : algoliaIndexName ,
306+ }
305307 : null ,
306308 hooks : {
307309 onBrokenMarkdownLinks : "warn" ,
0 commit comments