Skip to content

Commit 0088669

Browse files
thegdsksglinr
andcommitted
fix(docs): explicitly pass NEXT_PUBLIC env vars to client bundle
Co-Authored-By: Glinr <bot@glincker.com>
1 parent 7565dac commit 0088669

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

apps/docs/next.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ export default withNextra({
1616
reactStrictMode: true,
1717
trailingSlash: true,
1818
basePath,
19+
env: {
20+
NEXT_PUBLIC_POSTHOG_KEY: process.env.NEXT_PUBLIC_POSTHOG_KEY,
21+
NEXT_PUBLIC_POSTHOG_HOST: process.env.NEXT_PUBLIC_POSTHOG_HOST,
22+
NEXT_PUBLIC_GA_ID: process.env.NEXT_PUBLIC_GA_ID,
23+
NEXT_PUBLIC_SITE_URL: process.env.NEXT_PUBLIC_SITE_URL,
24+
},
1925
assetPrefix: basePath ? `${basePath}/` : undefined,
2026
webpack: (config) => {
2127
// Force a single React instance for linked local packages (featuredrop -> root react devDep).

0 commit comments

Comments
 (0)