build: optimize Next.js config and Docker memory options to prevent VPS crash
This commit is contained in:
parent
cf575c4957
commit
d4d5d080e7
2 changed files with 7 additions and 1 deletions
|
|
@ -18,6 +18,7 @@ COPY . .
|
|||
RUN pnpm prisma generate
|
||||
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV NODE_OPTIONS="--max-old-space-size=1024"
|
||||
RUN pnpm run build
|
||||
|
||||
EXPOSE 3000
|
||||
|
|
|
|||
|
|
@ -1,7 +1,12 @@
|
|||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
/* config options here */
|
||||
typescript: {
|
||||
ignoreBuildErrors: true,
|
||||
},
|
||||
eslint: {
|
||||
ignoreDuringBuilds: true,
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
|
|
|||
Loading…
Reference in a new issue