One Calendar is a privacy-first calendar web app built with Next.js. It has modern security features, including e2ee, password-protected sharing, and self-destructing share links 馃搮 calendar.xyehr.cn
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 31 lines 733 B view raw
1import { execSync } from 'node:child_process' 2import type { NextConfig } from 'next' 3import packageJson from './package.json' 4 5const getGitCommit = () => { 6 try { 7 return execSync('git rev-parse --short HEAD', { encoding: 'utf8' }).trim() 8 } catch { 9 return 'unknown' 10 } 11} 12 13const nextConfig: NextConfig = { 14 typescript: { 15 ignoreBuildErrors: true, 16 }, 17 images: { 18 formats: ['image/avif', 'image/webp'], 19 minimumCacheTTL: 60 * 60 * 24, 20 }, 21 env: { 22 NEXT_PUBLIC_APP_VERSION: packageJson.version, 23 NEXT_PUBLIC_GIT_COMMIT: getGitCommit(), 24 NEXT_PUBLIC_BUILD_TIME: new Date().toISOString(), 25 }, 26 experimental: { 27 optimizePackageImports: ['lucide-react', 'date-fns'], 28 }, 29} 30 31export default nextConfig