- Sign in with a code from your email (the link still works); setup item for the code email - Use made-up data: a pretend bank with three months of spending, no Plaid account needed - Is this your pay? when regular money in is filed as something else, with a one-press fix - They look right: keep every bank-given category in one press - Your week on Home, Plan in the main menu, history start per bank on Accounts - A new version of broke is ready, in the sidebar and Settings - Start skips the rebuild when nothing changed; country screen says it was guessed - Fix: skipping banks no longer sends you back to setup Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
918 B
TypeScript
23 lines
918 B
TypeScript
import { execSync } from "node:child_process";
|
|
import type { NextConfig } from "next";
|
|
|
|
// When the code this copy runs was last changed (its newest commit), for "A new version of broke is ready".
|
|
let builtFrom = "";
|
|
try {
|
|
builtFrom = execSync("git log -1 --format=%cI", { stdio: ["ignore", "pipe", "ignore"] }).toString().trim();
|
|
} catch {
|
|
/* no git (a download without history): the update check stays quiet */
|
|
}
|
|
|
|
const nextConfig: NextConfig = {
|
|
devIndicators: false,
|
|
distDir: process.env.NEXT_DIST_DIR || ".next", // a production build can sit beside the running dev server
|
|
serverExternalPackages: ["pg"],
|
|
env: { BROKE_BUILT_FROM: builtFrom },
|
|
// Keep pages you visited for 3 min, so going back or switching tabs is instant. Every edit calls router.refresh(),
|
|
// which drops the cache, so changes still show at once.
|
|
experimental: { staleTimes: { dynamic: 180 } },
|
|
};
|
|
|
|
export default nextConfig;
|