Skip to content

Commit 39a6198

Browse files
Merge branch 'main' into exp-1609/delete-vercel-json
2 parents e15d448 + cd54ecf commit 39a6198

7 files changed

Lines changed: 87 additions & 66 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v7
22+
23+
- uses: actions/setup-node@v6
24+
with:
25+
node-version: 24
26+
cache: npm
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
env:
31+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
32+
33+
- name: Build site
34+
run: npm run build
35+
env:
36+
ZENDESK_KEY: ${{ secrets.ZENDESK_KEY }}
37+
AMPLITUDE_API_KEY: ${{ secrets.AMPLITUDE_API_KEY }}
38+
GTM_ID: ${{ vars.GTM_ID }}
39+
FEATURE_DEV_FLAG: ${{ vars.FEATURE_DEV_FLAG }}
40+
FEATURE_NEW_PRODUCTS_FLAG: ${{ vars.FEATURE_NEW_PRODUCTS_FLAG }}
41+
42+
- uses: actions/configure-pages@v6
43+
44+
- uses: actions/upload-pages-artifact@v5
45+
with:
46+
path: build
47+
48+
deploy:
49+
needs: build
50+
runs-on: ubuntu-latest
51+
environment:
52+
name: github-pages
53+
url: ${{ steps.deployment.outputs.page_url }}
54+
steps:
55+
- id: deployment
56+
uses: actions/deploy-pages@v5

.github/workflows/pr.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: PR build
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v7
11+
12+
- uses: actions/setup-node@v6
13+
with:
14+
node-version: 24
15+
cache: npm
16+
17+
# The ADO registry in .npmrc requires auth even to install, so PR
18+
# builds need NPM_TOKEN too (fork PRs don't get secrets and will fail)
19+
- name: Install dependencies
20+
run: npm ci
21+
env:
22+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
23+
24+
- name: Build site
25+
run: npm run build
26+
env:
27+
# plugin-google-gtag requires a trackingID, so PR builds need it too
28+
GTM_ID: ${{ vars.GTM_ID }}
29+
FEATURE_DEV_FLAG: ${{ vars.FEATURE_DEV_FLAG }}
30+
FEATURE_NEW_PRODUCTS_FLAG: ${{ vars.FEATURE_NEW_PRODUCTS_FLAG }}

docusaurus.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,6 @@ const config = {
262262
anonymizeIP: true,
263263
},
264264
],
265-
266-
"vercel-analytics",
267265
],
268266

269267
themes: ["@docusaurus/theme-mermaid", "docusaurus-theme-search-typesense"],

package-lock.json

Lines changed: 0 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"@codat/sdk-link-types": "1.10.1",
3131
"@docusaurus/core": "3.9.2",
3232
"@docusaurus/plugin-client-redirects": "3.9.2",
33-
"@docusaurus/plugin-vercel-analytics": "3.9.2",
3433
"@docusaurus/preset-classic": "3.9.2",
3534
"@docusaurus/theme-live-codeblock": "3.9.2",
3635
"@docusaurus/theme-mermaid": "3.9.2",

src/theme/NavbarItem/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import NavbarIconLink from "@theme/NavbarItem/NavbarIconLink";
44
import NavbarSeparator from "@theme/NavbarItem/NavbarSeparator";
55
import NavbarCta from "@theme/NavbarItem/NavbarCta";
66

7-
import { track } from "@vercel/analytics";
87
import { trackEvent } from "../../utils/amplitude";
98

109
const CustomNavbarItemComponents = {
@@ -18,7 +17,6 @@ export default function NavbarItem(props) {
1817

1918
const onTrack = () => {
2019
if (props.label === "Sign in") {
21-
track("Sign in");
2220
trackEvent("Navigation Click", {
2321
element: "Sign in",
2422
type: "navbar_cta",

static/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs.codat.io

0 commit comments

Comments
 (0)