Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.2",
"private": true,
"dependencies": {
"@duckdb/duckdb-wasm": "^1.33.1-dev45.0",
"@emotion/cache": "11.14.0",
"@emotion/react": "11.13.0",
"@emotion/styled": "11.13.0",
Expand Down
14 changes: 14 additions & 0 deletions src/app/[locale]/gtfs-viewer/components/GtfsViewerClient.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
'use client';

// Client Component wrapper that lazy-loads GtfsViewerClient with ssr:false.
// This keeps DuckDB-WASM out of the server bundle and prevents the Turbopack
// WASM chunking crash at build time. ssr:false is allowed here because this
// is a Client Component.
import dynamic from 'next/dynamic';

const GtfsViewerClient = dynamic(
() => import('../../../components/gtfs-viewer/GtfsViewerClient'),

Check failure on line 10 in src/app/[locale]/gtfs-viewer/components/GtfsViewerClient.tsx

View workflow job for this annotation

GitHub Actions / lint_and_test

Functions that return promises must be async
{ ssr: false },
);

export default GtfsViewerClient;
18 changes: 18 additions & 0 deletions src/app/[locale]/gtfs-viewer/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { type ReactElement } from 'react';
import { type Metadata } from 'next';
import { routing } from '../../../i18n/routing';
import { type Locale } from '../../../i18n/routing';
import GtfsViewerClient from './components/GtfsViewerClient';

export const metadata: Metadata = {
title: 'GTFS Viewer POC | MobilityDatabase',
description: 'Explore GTFS dataset tables with efficient pagination and search via DuckDB-WASM.',

Check failure on line 9 in src/app/[locale]/gtfs-viewer/page.tsx

View workflow job for this annotation

GitHub Actions / lint_and_test

Insert `⏎···`
};

export function generateStaticParams(): Array<{ locale: Locale }> {
return routing.locales.map((locale) => ({ locale }));
}

export default function GtfsViewerPage(): ReactElement {
return <GtfsViewerClient />;
}
Loading
Loading