Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
xvvvyz committed Jul 30, 2023
1 parent b388def commit 3236f6a
Show file tree
Hide file tree
Showing 7 changed files with 252 additions and 227 deletions.
1 change: 1 addition & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions app/(account)/subjects/[subjectId]/events.csv/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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}`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const ChatForm = ({

return (
<div className="px-4">
<div className="space-y-4 rounded border border-alpha-1 bg-alpha-reverse-1 py-4">
<div className="space-y-4 rounded border border-alpha-1 bg-bg-2 py-4">
<div className="space-y-4" role="section">
{useMemo(
() =>
Expand Down
5 changes: 4 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const nextConfig = {
},
experimental: {
legacyBrowsers: false,
outputFileTracingExcludes: { '**/*': 'node_modules/canvas' },
serverActions: true,
},
images: {
Expand All @@ -26,6 +25,10 @@ const nextConfig = {
],
},
reactStrictMode: true,
webpack: (config) => {
config.externals.push({ canvas: 'commonjs canvas' });
return config;
},
};

module.exports = nextConfig;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"eslint-config-next": "^13.4.12",
"eslint-config-prettier": "^8.9.0",
"fuse.js": "^6.6.2",
"jsdom": "^22.1.0",
"lodash": "^4.17.21",
"nanoid": "^4.0.2",
"next": "^13.4.12",
Expand All @@ -72,6 +71,7 @@
"react-markdown": "^8.0.7",
"react-select": "^5.7.4",
"react-vega": "^7.6.0",
"sharp": "^0.32.4",
"supabase": "^1.82.2",
"tailwind-merge": "^1.14.0",
"tailwindcss": "^3.3.3",
Expand Down
Loading

0 comments on commit 3236f6a

Please sign in to comment.