refactor: docker image for less final size (#385)

This commit is contained in:
Morfixx
2026-02-17 16:12:53 +03:00
committed by GitHub
parent 031a42b9eb
commit 961219835e
6 changed files with 225 additions and 73 deletions

View File

@@ -16,6 +16,18 @@ const config = {
: undefined,
reactStrictMode: true,
/** Exclude build tools and dev-only packages from the standalone output */
outputFileTracingExcludes: {
"**/*": [
"@esbuild/**",
"esbuild/**",
"typescript/**",
"webpack/**",
"uglify-js/**",
"terser/**",
],
},
/** Enables hot reloading for local packages without a build step */
transpilePackages: [
"@kan/api",
@@ -51,8 +63,8 @@ const config = {
hostname: "*.googleusercontent.com",
},
{
protocol: 'https',
hostname: 'cdn.discordapp.com',
protocol: "https",
hostname: "cdn.discordapp.com",
},
];