Files
sent-shop/next.config.ts
2026-01-19 20:21:14 +01:00

32 lines
626 B
TypeScript

/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
images: {
formats: ['image/avif', 'image/webp'],
remotePatterns: [
{
protocol: 'https',
hostname: 'cdn.shopify.com',
pathname: '/s/files/**'
}
]
},
// Ručno implementiramo rewrite-ove za i18n
async rewrites() {
return {
beforeFiles: [
// Handle /en/* routes
{
source: '/en',
destination: '/'
},
{
source: '/en/:path*',
destination: '/:path*'
}
]
};
}
};
export default nextConfig;