infra: base stack config (Next 16 + React 19 + TS strict, Tailwind v4, sql.js/Drizzle deps)
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.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user