Skip to content

Commit

Permalink
chore: Remove Crisp website ID from source (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjcsmith authored Dec 8, 2024
1 parent 94c0364 commit c286110
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ jobs:
--build-arg="NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=${{ secrets.CLOUD_PROD_CLERK_PUBLISHABLE_KEY }}" \
--build-arg="NEXT_PUBLIC_HYPERDX_API_KEY=${{ secrets.CLOUD_PROD_HYPERDX_API_KEY }}" \
--build-arg="NEXT_PUBLIC_POSTHOG_KEY=${{ secrets.CLOUD_PROD_POSTHOG_KEY }}" \
--build-arg="NEXT_PUBLIC_CRISP_WEBSITE_ID=${{ secrets.CLOUD_PROD_CRISP_WEBSITE_ID }}" \
-t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -t $ECR_REGISTRY/$ECR_REPOSITORY:latest ./
build-control-plane-image:
Expand Down
4 changes: 4 additions & 0 deletions app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ ARG NEXT_PUBLIC_POSTHOG_KEY
ENV NEXT_PUBLIC_POSTHOG_KEY=$NEXT_PUBLIC_POSTHOG_KEY
ENV NEXT_PUBLIC_POSTHOG_HOST="https://www.inferable.ai/ingest"

ARG NEXT_PUBLIC_CRISP_WEBSITE_ID
ENV NEXT_PUBLIC_CRISP_WEBSITE_ID=$NEXT_PUBLIC_CRISP_WEBSITE_ID


RUN npm run build
RUN npm prune --omit=dev

Expand Down
2 changes: 1 addition & 1 deletion app/components/crisp-chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Crisp } from "crisp-sdk-web";

const CrispChat = () => {
useEffect(() => {
Crisp.configure("9ea8a5a6-1032-49eb-aee0-81af37053f65");
process.env.NEXT_PUBLIC_CRISP_WEBSITE_ID && Crisp.configure(process.env.NEXT_PUBLIC_CRISP_WEBSITE_ID);
}, []);

return null;
Expand Down

0 comments on commit c286110

Please sign in to comment.