Merge commit 'bfd2363635e56421df843d25e76cb6c3c3fab7b6'
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -14,3 +14,7 @@ pnpm-lock.yaml
|
|||||||
.tmp
|
.tmp
|
||||||
.vscode
|
.vscode
|
||||||
.idea
|
.idea
|
||||||
|
static/health.json
|
||||||
|
static/health/
|
||||||
|
static/version.json
|
||||||
|
static/version/
|
||||||
|
|||||||
@@ -11,6 +11,11 @@
|
|||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=20"
|
"node": ">=20"
|
||||||
|
"dev": "docusaurus start",
|
||||||
|
"build": "npm run generate:meta && docusaurus build",
|
||||||
|
"start": "node scripts/serve.js",
|
||||||
|
"serve": "npm run start",
|
||||||
|
"generate:meta": "node scripts/generateMeta.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "14.2.4",
|
"next": "14.2.4",
|
||||||
|
|||||||
15
scripts/serve.js
Normal file
15
scripts/serve.js
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
const { spawn } = require('child_process');
|
||||||
|
|
||||||
|
const port = process.env.PORT || '3000';
|
||||||
|
const args = ['serve', '--dir', 'build', '--host', '0.0.0.0', '--port', port];
|
||||||
|
|
||||||
|
const child = spawn('docusaurus', args, {
|
||||||
|
stdio: 'inherit',
|
||||||
|
shell: true
|
||||||
|
});
|
||||||
|
|
||||||
|
child.on('exit', (code) => {
|
||||||
|
process.exit(code);
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user