Files
HexaHost-GameCloud/apps/web/next.config.ts
smueller 4fe25e6ec3
Some checks failed
CI / Node — lint, typecheck, test, build (push) Failing after 9s
CI / Go — node-agent tests (push) Failing after 22s
CI / Go — edge-gateway build (push) Successful in 13s
Phase0
2026-06-26 11:12:51 +02:00

20 lines
515 B
TypeScript

import type { NextConfig } from "next";
import createNextIntlPlugin from "next-intl/plugin";
import path from "node:path";
const withNextIntl = createNextIntlPlugin("./src/i18n/request.ts");
const isDockerBuild = process.env.DOCKER_BUILD === "1";
const nextConfig: NextConfig = {
...(isDockerBuild
? {
output: "standalone" as const,
outputFileTracingRoot: path.join(__dirname, "../.."),
}
: {}),
transpilePackages: ["@hexahost/ui"],
};
export default withNextIntl(nextConfig);