mirror of
https://github.com/UiO-Gaming/uiogaming.no.git
synced 2026-11-05 13:56:47 +01:00
Install with npm ci, ship only the standalone server and its traced dependencies, and run as a non-root user. Shrinks the image from 1.78 GB to 438 MB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
507 B
TypeScript
23 lines
507 B
TypeScript
import type { NextConfig } from "next"
|
|
import createNextIntlPlugin from "next-intl/plugin"
|
|
|
|
const withNextIntl = createNextIntlPlugin()
|
|
|
|
const nextConfig: NextConfig = {
|
|
// Bundles a minimal server with only the needed dependencies, used by the
|
|
// Docker image
|
|
output: "standalone",
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "cdn.sanity.io",
|
|
port: "",
|
|
pathname: "/images/**",
|
|
},
|
|
],
|
|
},
|
|
}
|
|
|
|
export default withNextIntl(nextConfig)
|