@knowcode/doc-builder 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/lib/deploy.js +5 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ All notable changes to @knowcode/doc-builder will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.0.9] - 2025-01-19
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Fixed "buildCommand should be string,null" error
|
|
12
|
+
- Simplified vercel.json to minimal configuration
|
|
13
|
+
- Removed unnecessary buildCommand and installCommand fields
|
|
14
|
+
- Only include outputDirectory in vercel.json
|
|
15
|
+
|
|
8
16
|
## [1.0.8] - 2025-01-19
|
|
9
17
|
|
|
10
18
|
### Added
|
package/lib/deploy.js
CHANGED
|
@@ -58,13 +58,10 @@ async function setupVercelProject(config) {
|
|
|
58
58
|
fs.mkdirSync(outputDir, { recursive: true });
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
// Create vercel.json for static site
|
|
62
|
-
//
|
|
61
|
+
// Create minimal vercel.json for static site
|
|
62
|
+
// Only include required fields
|
|
63
63
|
const vercelConfig = {
|
|
64
|
-
|
|
65
|
-
outputDirectory: ".",
|
|
66
|
-
installCommand: "",
|
|
67
|
-
framework: null
|
|
64
|
+
outputDirectory: "."
|
|
68
65
|
};
|
|
69
66
|
|
|
70
67
|
fs.writeJsonSync(vercelConfigPath, vercelConfig, { spaces: 2 });
|
|
@@ -197,11 +194,9 @@ async function deployToVercel(config, isProd = false) {
|
|
|
197
194
|
// Create vercel.json in output directory for deployment
|
|
198
195
|
const vercelConfigPath = path.join(outputPath, 'vercel.json');
|
|
199
196
|
if (!fs.existsSync(vercelConfigPath)) {
|
|
197
|
+
// Create minimal vercel.json for static site
|
|
200
198
|
const vercelConfig = {
|
|
201
|
-
|
|
202
|
-
outputDirectory: ".",
|
|
203
|
-
installCommand: "",
|
|
204
|
-
framework: null
|
|
199
|
+
outputDirectory: "."
|
|
205
200
|
};
|
|
206
201
|
fs.writeJsonSync(vercelConfigPath, vercelConfig, { spaces: 2 });
|
|
207
202
|
}
|