- Read visitors from /server_storage/visitors.db (webserver's DB) instead of admin dash's own table; geoip lookups at query time for globe markers - Globe card now shows 24h, 7d, and all-time unique visitor counts - Uptime monitor: Nextcloud via host.docker.internal for Docker networking, Website and Gitea monitored on public domains - UptimeCard uses real hourly history bars instead of Math.random() mock - docker-compose: mount /server_storage:ro, add extra_hosts for Linux compat Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
716 B
JavaScript
25 lines
716 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: "standalone",
|
|
externals: {
|
|
'geoip-lite': 'commonjs geoip-lite',
|
|
'sqlite3': 'commonjs sqlite3',
|
|
},
|
|
experimental: {
|
|
// This is needed to copy the geoip-lite data files to the standalone build
|
|
outputFileTracingIncludes: {
|
|
'/api/track': ['./node_modules/geoip-lite/data/**/*'],
|
|
'/api/visitors': ['./node_modules/geoip-lite/data/**/*'],
|
|
},
|
|
},
|
|
webpack: (config) => {
|
|
config.externals.push({
|
|
'geoip-lite': 'commonjs geoip-lite',
|
|
'sqlite3': 'commonjs sqlite3',
|
|
});
|
|
return config;
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|