Skip to content
Merged
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
4 changes: 3 additions & 1 deletion app/e2e/global-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ export default async function globalSetup() {
`⏳ Starting Next.js ${serverCmd} server on port ${serverPort}...`,
);
const args = ["next", serverCmd, "--port", String(serverPort)];
if (serverCmd === "dev") args.push("--turbopack");
// Use webpack explicitly — Turbopack (Next.js 16 default) doesn't correctly
// resolve CJS/ESM interop for the @neoboard/connection package at runtime.
if (serverCmd === "dev") args.push("--webpack");
const server = spawn("npx", args, {
cwd: appDir,
stdio: "pipe",
Expand Down
9 changes: 7 additions & 2 deletions app/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ const nextConfig: NextConfig = {
// Enable source maps in production for E2E coverage collection (nextcov).
productionBrowserSourceMaps: process.env.E2E_COVERAGE === "1",
outputFileTracingRoot: resolve(import.meta.dirname, ".."),
transpilePackages: ["@neoboard/components"],
serverExternalPackages: ["connection", "postgres", "pg"],
transpilePackages: ["@neoboard/components", "@neoboard/connection"],
serverExternalPackages: [
"postgres",
"pg",
"neo4j-driver",
"neo4j-driver-core",
],
webpack: (config, { isServer }) => {
if (isServer) {
// The instrumentation file is compiled in a separate webpack pass that does
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
"dev": "next dev --webpack",
"build": "next build --webpack",
"start": "next start",
"lint": "next lint",
Expand Down
Loading
Loading