2026-10-26 10:20:23 +00:00
|
|
|
const fs = require('fs');
|
|
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
|
|
// One id per build, shared with the build workers through process.env (they
|
|
|
|
|
// inherit it), and written to public/version.json so a running app can ask
|
|
|
|
|
// the server which build is live (components/UpdateWatcher).
|
|
|
|
|
if (!process.env.NEXT_PUBLIC_BUILD_ID) {
|
|
|
|
|
process.env.NEXT_PUBLIC_BUILD_ID = Date.now().toString(36);
|
|
|
|
|
fs.writeFileSync(
|
|
|
|
|
path.join(__dirname, 'public', 'version.json'),
|
|
|
|
|
JSON.stringify({ id: process.env.NEXT_PUBLIC_BUILD_ID }) + '\n',
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-24 19:51:29 +00:00
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
|
const nextConfig = {
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
// Only use static export for production builds
|
|
|
|
|
...(process.env.NEXT_EXPORT === 'true' ? { output: 'export' } : {}),
|
2026-05-24 19:51:29 +00:00
|
|
|
images: {
|
|
|
|
|
unoptimized: true,
|
|
|
|
|
},
|
Add PWA support and UI redesign
Add full PWA support (icons, manifest, service worker, pwa lib and bridge) and introduce install/offline UI. Generate app icons via a new scripts/generate-icons.js and include multiple icon sizes in public/icons; update manifest and layout head meta/preconnect. Revamp global styles (globals.css) with new utilities, animations, spacing for bottom nav, card shadows, skeletons and accessibility tweaks. Polish major screens (login, collections, map, settings) with improved headers, loading states, touch/press feedback, and layout adjustments; add new components (InstallPrompt, OfflineIndicator, PWABridge) and update various components to match new visual/UX patterns. Update Dockerfile to generate icons and use Next.js static export output (/out) for nginx, and bump package setup to support icon generation.
2026-05-26 22:34:50 +00:00
|
|
|
trailingSlash: true,
|
2026-05-24 19:51:29 +00:00
|
|
|
};
|
|
|
|
|
|
2026-10-26 10:20:23 +00:00
|
|
|
module.exports = nextConfig;
|