diff --git a/docs/start/v2.md b/docs/start/v2.md index 61e50ee795e..8fa273c2b9f 100644 --- a/docs/start/v2.md +++ b/docs/start/v2.md @@ -758,7 +758,7 @@ module.exports = { serverBuildPath: "server/index.js", serverMainFields: ["main", "module"], // default value, can be removed serverMinify: false, // default value, can be removed - serverModuleFormat: "cjs", // default value, can be removed + serverModuleFormat: "cjs", serverPlatform: "node", // default value, can be removed }; ``` @@ -774,7 +774,7 @@ module.exports = { serverDependenciesToBundle: "all", serverMainFields: ["browser", "module", "main"], serverMinify: true, - serverModuleFormat: "esm", + serverModuleFormat: "esm", // default value, can be removed serverPlatform: "neutral", }; ``` @@ -790,7 +790,7 @@ module.exports = { serverDependenciesToBundle: "all", serverMainFields: ["browser", "module", "main"], serverMinify: true, - serverModuleFormat: "esm", + serverModuleFormat: "esm", // default value, can be removed serverPlatform: "neutral", }; ``` @@ -806,7 +806,7 @@ module.exports = { serverDependenciesToBundle: "all", serverMainFields: ["module", "main"], serverMinify: false, // default value, can be removed - serverModuleFormat: "esm", + serverModuleFormat: "esm", // default value, can be removed serverPlatform: "neutral", }; ``` @@ -820,7 +820,7 @@ module.exports = { serverBuildPath: "build/index.js", // default value, can be removed serverMainFields: ["main", "module"], // default value, can be removed serverMinify: false, // default value, can be removed - serverModuleFormat: "cjs", // default value, can be removed + serverModuleFormat: "cjs", serverPlatform: "node", // default value, can be removed }; ```