fix(og-image): resolve 404s, migrate middleware to proxy.ts, and fix local port conflict

This commit is contained in:
2026-02-17 01:31:13 +01:00
parent 11908cfc4e
commit 163b356920
13 changed files with 38 additions and 21 deletions

View File

@@ -1,10 +1,18 @@
import createNextIntlPlugin from 'next-intl/plugin';
import withMintelConfig from '@mintel/next-config';
const withNextIntl = createNextIntlPlugin();
console.log('🚀 NEXT CONFIG LOADED FROM:', process.cwd());
/** @type {import('next').NextConfig} */
const nextConfig = {
onDemandEntries: {
// Make sure entries are not disposed too quickly
maxInactiveAge: 60 * 1000,
},
logging: {
fetches: {
fullUrl: true,
},
},
output: 'standalone',
async redirects() {
return [
@@ -342,6 +350,4 @@ const nextConfig = {
},
};
const nextIntlConfig = withNextIntl(nextConfig);
export default withMintelConfig(nextIntlConfig);
export default withMintelConfig(nextConfig);