diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index f5d8466a..fe5311c0 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -26,6 +26,7 @@ jobs: - run: pnpm exec supabase link --project-ref "$SUPABASE_PROJECT_ID" - run: pnpm run db:start - run: pnpm run db:types + - run: pnpm exec next telemetry disable - run: pnpm exec vercel build - run: pnpm exec supabase db push --password "$SUPABASE_DB_PASSWORD_INLINE" diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 9228fbf0..1a407440 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -26,6 +26,7 @@ jobs: - run: pnpm exec supabase link --project-ref "$SUPABASE_PROJECT_ID" - run: pnpm run db:start - run: pnpm run db:types + - run: pnpm exec next telemetry disable - run: pnpm exec vercel build --prod - run: pnpm exec supabase db push --password "$SUPABASE_DB_PASSWORD_INLINE" diff --git a/app/(account)/subjects/[subjectId]/events.csv/route.tsx b/app/(account)/subjects/[subjectId]/events.csv/route.tsx index 488f564c..bebf504c 100644 --- a/app/(account)/subjects/[subjectId]/events.csv/route.tsx +++ b/app/(account)/subjects/[subjectId]/events.csv/route.tsx @@ -3,7 +3,6 @@ import firstIfArray from '@/(account)/_utilities/first-if-array'; import forceArray from '@/(account)/_utilities/force-array'; import createServerRouteClient from '@/_server/create-server-route-client'; import { formatInTimeZone } from 'date-fns-tz'; -import { JSDOM } from 'jsdom'; import { NextResponse } from 'next/server'; interface GetContext { @@ -104,7 +103,7 @@ export const GET = async (req: Request, ctx: GetContext) => { const event = firstIfArray(eventData); forceArray(event.comments).forEach((comment, index) => { - const text = new JSDOM(comment.content).window.document.body.textContent; + const text = comment.content.replace(/<[^>]+>/g, '').replace(/\s+/g, ' '); if (!text) return; const columnName = `Comment ${index + 1}`; diff --git a/app/(account)/subjects/[subjectId]/timeline/@insights/_components/chat-form.tsx b/app/(account)/subjects/[subjectId]/timeline/@insights/_components/chat-form.tsx index 044bb80c..bec180a2 100644 --- a/app/(account)/subjects/[subjectId]/timeline/@insights/_components/chat-form.tsx +++ b/app/(account)/subjects/[subjectId]/timeline/@insights/_components/chat-form.tsx @@ -50,7 +50,7 @@ const ChatForm = ({ return (