Files
Flight-Ops/next.config.ts

11 lines
377 B
TypeScript

import type { NextConfig } from 'next';
const nextConfig: NextConfig = {
// sql.js loads its SQLite WASM blob relative to its own dist/ dir at runtime;
// bundling it into a .next chunk would break that resolution. Keeping it
// external means require('sql.js') hits node_modules (kept in the image).
serverExternalPackages: ['sql.js'],
};
export default nextConfig;