Copied/adapted from Flight-Ops (../flight): tsconfig/next/vitest configs verbatim, Dockerfile two-stage node:22-slim with node_modules in build context (zero outbound network at image-build time), .dockerignore/.gitignore adapted. package.json renamed to space-wanderer v0.1.0; dropped maplibre-gl + assets:download; added Tailwind v4, Radix slot, cva/clsx/tailwind-merge for the scificn-ui component layer.
11 lines
377 B
TypeScript
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;
|