Files
CodePilot/next.config.ts
T
7418andClaude Opus 4.6 e956753a38 feat: add version display, cache clearing on upgrade, exclude data dir
- Show app version (v0.4.0) in sidebar bottom
- Clear Electron web cache when version changes to prevent stale JS
- Exclude data/ directory from packaged app

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 21:02:39 +08:00

16 lines
359 B
TypeScript

import type { NextConfig } from "next";
import { createRequire } from "module";
const require = createRequire(import.meta.url);
const pkg = require("./package.json");
const nextConfig: NextConfig = {
output: 'standalone',
serverExternalPackages: ['better-sqlite3'],
env: {
NEXT_PUBLIC_APP_VERSION: pkg.version,
},
};
export default nextConfig;