Skip to content

Commit 979f81c

Browse files
authored
add missing env vars to docker image (#484)
1 parent 20a28eb commit 979f81c

File tree

8 files changed

+16
-87
lines changed

8 files changed

+16
-87
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,7 @@ jobs:
6060
cache-to: type=gha,mode=max
6161
build-args: |
6262
NEXT_PUBLIC_ROOT_URL="https://docs.plural.sh"
63+
NEXT_PUBLIC_GA_ID=${{ vars.NEXT_PUBLIC_GA_ID }}
64+
NEXT_PUBLIC_ALGOLIA_APP_ID=${{ vars.NEXT_PUBLIC_ALGOLIA_APP_ID }}
65+
NEXT_PUBLIC_ALGOLIA_APP_ID_KEY=${{ vars.NEXT_PUBLIC_ALGOLIA_APP_ID_KEY }}
66+
NEXT_PUBLIC_ALGOLIA_INDEX_NAME=${{ vars.NEXT_PUBLIC_ALGOLIA_INDEX_NAME }}

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,16 @@ RUN yarn install --immutable
1212
COPY . .
1313

1414
ARG NEXT_PUBLIC_ROOT_URL
15+
ARG NEXT_PUBLIC_GA_ID
16+
ARG NEXT_PUBLIC_ALGOLIA_APP_ID
17+
ARG NEXT_PUBLIC_ALGOLIA_APP_ID_KEY
18+
ARG NEXT_PUBLIC_ALGOLIA_INDEX_NAME
19+
1520
ENV NEXT_PUBLIC_ROOT_URL=$NEXT_PUBLIC_ROOT_URL
21+
ENV NEXT_PUBLIC_GA_ID=$NEXT_PUBLIC_GA_ID
22+
ENV NEXT_PUBLIC_ALGOLIA_APP_ID=$NEXT_PUBLIC_ALGOLIA_APP_ID
23+
ENV NEXT_PUBLIC_ALGOLIA_APP_ID_KEY=$NEXT_PUBLIC_ALGOLIA_APP_ID_KEY
24+
ENV NEXT_PUBLIC_ALGOLIA_INDEX_NAME=$NEXT_PUBLIC_ALGOLIA_INDEX_NAME
1625

1726
RUN yarn build
1827

generated/routes.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"/overview/management-api-reference": {
1515
"relPath": "/overview/management-api-reference.md",
16-
"lastmod": "2025-06-12T07:56:59.000Z"
16+
"lastmod": "2025-07-09T01:30:04.000Z"
1717
},
1818
"/overview/agent-api-reference": {
1919
"relPath": "/overview/agent-api-reference.md",
@@ -117,7 +117,7 @@
117117
},
118118
"/plural-features/continuous-deployment/lua": {
119119
"relPath": "/plural-features/continuous-deployment/lua.md",
120-
"lastmod": "2025-06-09T19:18:57.000Z"
120+
"lastmod": "2025-07-01T14:46:40.000Z"
121121
},
122122
"/plural-features/continuous-deployment/global-service": {
123123
"relPath": "/plural-features/continuous-deployment/global-service.md",

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
"lodash": "4.17.21",
5757
"memoize-one": "6.0.0",
5858
"next": "14.2.15",
59-
"posthog-js": "1.68.1",
6059
"raw-loader": "4.0.2",
6160
"react": "18.3.1",
6261
"react-dom": "18.3.1",

pages/_app.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import {
3838
isGithubRepoData,
3939
} from '@src/components/GithubStars'
4040
import GlobalStyles from '@src/components/GlobalStyles'
41-
import { usePosthog } from '@src/components/hooks/usePosthog'
4241
import HtmlHead from '@src/components/HtmlHead'
4342
import MainContent from '@src/components/MainContent'
4443
import PageFooter from '@src/components/PageFooter'
@@ -111,7 +110,6 @@ const Link = forwardRef(
111110
)
112111

113112
function App({ Component, pageProps = {}, swrConfig }: MyAppProps) {
114-
usePosthog()
115113
const router = useRouter()
116114
const markdoc = pageProps?.markdoc
117115
const [isClient, setIsClient] = useState(false)

src/components/MainContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export default function MainContent({
124124
<EditOnGithubLink
125125
target="_blank"
126126
rel="noopener noreferrer"
127-
href={`https://github.com/pluralsh/documentation/blob/${process.env.NEXT_PUBLIC_GITHUB_BRANCH_NAME}/pages${markdoc.file.path}`}
127+
href={`https://github.com/pluralsh/documentation/blob/main/pages${markdoc.file.path}`}
128128
>
129129
<GitHubLogoIcon
130130
size={20}

src/components/hooks/usePosthog.tsx

Lines changed: 0 additions & 64 deletions
This file was deleted.

yarn.lock

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9264,13 +9264,6 @@ __metadata:
92649264
languageName: node
92659265
linkType: hard
92669266

9267-
"fflate@npm:^0.4.1":
9268-
version: 0.4.8
9269-
resolution: "fflate@npm:0.4.8"
9270-
checksum: 29d8cbe44d5e7f53e7f5a160ac7f9cc025480c7b3bfd85c5f898cbe20dfa2dad4732daa534982664bf30b35896a90af44ea33ede5d94c5ffd1b8b0c0a0a56ca2
9271-
languageName: node
9272-
linkType: hard
9273-
92749267
"figures@npm:^3.0.0":
92759268
version: 3.2.0
92769269
resolution: "figures@npm:3.2.0"
@@ -12976,15 +12969,6 @@ __metadata:
1297612969
languageName: node
1297712970
linkType: hard
1297812971

12979-
"posthog-js@npm:1.68.1":
12980-
version: 1.68.1
12981-
resolution: "posthog-js@npm:1.68.1"
12982-
dependencies:
12983-
fflate: ^0.4.1
12984-
checksum: 8fc57852deb97a7ce091867df413042f8579c299f7e7f9a6564a64b4ed2662e2fd8af6829f5b1bfc4128eb2ddd64785dba321f503211f686d87be7cc099c42e5
12985-
languageName: node
12986-
linkType: hard
12987-
1298812972
"prelude-ls@npm:^1.2.1":
1298912973
version: 1.2.1
1299012974
resolution: "prelude-ls@npm:1.2.1"
@@ -14057,7 +14041,6 @@ __metadata:
1405714041
memoize-one: 6.0.0
1405814042
next: 14.2.15
1405914043
npm-run-all: 4.1.5
14060-
posthog-js: 1.68.1
1406114044
prettier: 3.2.5
1406214045
raw-loader: 4.0.2
1406314046
react: 18.3.1

0 commit comments

Comments
 (0)