Files
portfolio/next.config.ts
T
Ilia Mashkov d28343e22c feat: section open/close animations via ViewTransition and @starting-style
Enable experimental.viewTransition in Next.js config. Wrap active section
in ViewTransitionWrapper so the browser cross-fades between sections on
navigation. Replace animate-fadeIn keyframe with @starting-style + CSS
transition for the initial render enter animation.
2026-05-12 16:10:50 +03:00

17 lines
458 B
TypeScript

import type { NextConfig } from 'next';
/* output: 'export' is opt-in via STATIC_EXPORT=true.
* Set this in CI/deploy — not locally — so the mock API route works
* during development and local builds. */
const isExport = process.env.STATIC_EXPORT === 'true';
const nextConfig: NextConfig = {
...(isExport ? { output: 'export' } : {}),
images: { unoptimized: true },
experimental: {
viewTransition: true,
},
};
export default nextConfig;