fix: storybook font rendering and shared fonts module #1

Merged
ilia merged 74 commits from feat/portfolio-setup into main 2026-05-18 18:45:22 +00:00
Showing only changes of commit fea6682024 - Show all commits
+14 -6
View File
@@ -1,13 +1,21 @@
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';
/* PocketBase origin — used to allowlist remote images.
* PB_HOSTNAME and PB_PORT are server-only env vars; safe to read here. */
const pbHostname = process.env.PB_HOSTNAME ?? '127.0.0.1';
const pbPort = parseInt(process.env.PB_PORT ?? '8090', 10);
const nextConfig: NextConfig = {
...(isExport ? { output: 'export' } : {}),
images: { unoptimized: true },
output: 'standalone',
images: {
remotePatterns: [
{
protocol: 'http',
hostname: pbHostname,
port: String(pbPort),
},
],
},
experimental: {
viewTransition: true,
},