Skip to content

Commit af159f8

Browse files
Fix: Isolate visualizer and restore dashboard to main.
- Hard restore packages/dashboard to match origin/main exactly. - Fix pnpm visualizer script in root package.json. - Ensure all explorer/visualizer implementation lives strictly in packages/visualizer. Committed-By-Agent: cursor
1 parent f3ff71c commit af159f8

14 files changed

Lines changed: 2 additions & 3808 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"format": "prettier --write .",
1414
"format:check": "prettier --check .",
1515
"dashboard": "pnpm --filter @supabase/stripe-sync-dashboard dev",
16-
"visualizer": "pnpm --filter @supabase/stripe-sync-visualizer dev -- --port 3001",
16+
"visualizer": "pnpm --filter @supabase/stripe-sync-visualizer dev",
1717
"visualizer:with-data": "pnpm explorer:build && pnpm visualizer",
1818
"explorer:build": "tsx scripts/explorer-build.ts"
1919
},

packages/dashboard/PGLITE-SETUP.md

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

packages/dashboard/next.config.ts

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,17 @@
11
import type { NextConfig } from 'next'
22

33
const nextConfig: NextConfig = {
4-
eslint: {
5-
// Disable ESLint during builds - code will be linted separately
6-
ignoreDuringBuilds: true,
7-
},
8-
typescript: {
9-
// Check types during build but be lenient with errors for now
10-
ignoreBuildErrors: false,
11-
},
124
transpilePackages: ['stripe-experiment-sync'],
135
serverExternalPackages: ['esbuild'],
146
webpack: (config, { isServer }) => {
15-
// Preserve existing esbuild externals config
167
if (isServer) {
178
config.externals = config.externals || []
189
if (Array.isArray(config.externals)) {
1910
config.externals.push('esbuild')
2011
}
2112
}
22-
23-
// Add WASM support for PGlite
24-
config.experiments = {
25-
...config.experiments,
26-
asyncWebAssembly: true,
27-
}
28-
29-
// Configure WASM file handling
30-
config.module.rules.push({
31-
test: /\.wasm$/,
32-
type: 'asset/resource',
33-
})
34-
3513
return config
3614
},
37-
// Add headers for SharedArrayBuffer support (required by PGlite)
38-
async headers() {
39-
return [
40-
{
41-
source: '/(.*)',
42-
headers: [
43-
{
44-
key: 'Cross-Origin-Embedder-Policy',
45-
value: 'require-corp',
46-
},
47-
{
48-
key: 'Cross-Origin-Opener-Policy',
49-
value: 'same-origin',
50-
},
51-
],
52-
},
53-
]
54-
},
5515
}
5616

5717
export default nextConfig

packages/dashboard/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@
1313
"react": "^19",
1414
"react-dom": "^19",
1515
"@supabase/supabase-js": "^2",
16-
"stripe-experiment-sync": "workspace:*",
17-
"@electric-sql/pglite": "^0.2.0",
18-
"@codemirror/lang-sql": "^6.7.0",
19-
"codemirror": "^6.0.1",
20-
"@codemirror/view": "^6.26.0",
21-
"@codemirror/state": "^6.4.0"
16+
"stripe-experiment-sync": "workspace:*"
2217
},
2318
"devDependencies": {
2419
"@types/node": "^22",

0 commit comments

Comments
 (0)