Skip to content

Commit cf4010a

Browse files
committed
Изменена конфигурация Next.js для условного экспорта в зависимости от окружения. Теперь вывод будет включен только в продакшн-режиме.
1 parent 0f76c37 commit cf4010a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

next.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
/** @type {import('next').NextConfig} */
22

3+
const isProduction = process.env.NODE_ENV === "production";
4+
35
const nextConfig = {
4-
output: "export",
6+
// output: "export",
7+
...(isProduction && {
8+
output: "export",
9+
}),
510
assetPrefix: "",
611
basePath: "",
712
images: { unoptimized: true },

0 commit comments

Comments
 (0)