mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 08:37:25 +02:00
Allow server port to be chosen and update example
This commit is contained in:
parent
6fbde4eead
commit
0f6800df10
3 changed files with 8 additions and 5 deletions
|
@ -7,7 +7,7 @@
|
|||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
|
||||
function execute() {
|
||||
function execute(port) {
|
||||
const translation = require("./translation.js");
|
||||
translation();
|
||||
const CWD = process.cwd();
|
||||
|
@ -113,8 +113,6 @@ function execute() {
|
|||
|
||||
console.log("server.js triggered...");
|
||||
|
||||
const port = 3000;
|
||||
|
||||
reloadMetadataCategories();
|
||||
|
||||
/* handle all requests for document pages */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue