All checks were successful
Dev CI / Backend — Lint (push) Successful in 10m23s
Dev CI / Backend — Unit Tests (push) Successful in 10m17s
Dev CI / Frontend — Lint & Type-check (push) Successful in 11m3s
Dev CI / Frontend — Unit Tests (push) Successful in 10m33s
Dev CI / Notify Failure (push) Has been skipped
35 lines
835 B
JavaScript
35 lines
835 B
JavaScript
const createNextIntlPlugin = require('next-intl/plugin');
|
|
|
|
const withNextIntl = createNextIntlPlugin('./i18n/request.ts');
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
swcMinify: true,
|
|
|
|
// Standalone output for Docker (creates optimized server.js)
|
|
output: 'standalone',
|
|
|
|
experimental: {
|
|
serverActions: {
|
|
bodySizeLimit: '2mb',
|
|
},
|
|
},
|
|
env: {
|
|
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL || 'http://localhost:4000',
|
|
},
|
|
images: {
|
|
unoptimized: process.env.NODE_ENV === 'development',
|
|
domains: ['localhost', 'xpeditis.com', 'staging.xpeditis.com'],
|
|
// Allow S3 images in production
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: '**.amazonaws.com',
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
module.exports = withNextIntl(nextConfig);
|