mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
Fix hardcoded port number
This commit is contained in:
parent
4fd8d5a105
commit
ea4a4f6fe3
|
|
@ -378,7 +378,7 @@ function execute(port) {
|
|||
app.get(/\/[^\.]*\/?$/, (req, res) => {
|
||||
if (req.path.toString().endsWith("/")) {
|
||||
request.get(
|
||||
"http://localhost:3000" + req.path + "index.html",
|
||||
"http://localhost:" + port + req.path + "index.html",
|
||||
(err, response, body) => {
|
||||
if (!err) {
|
||||
res.send(body);
|
||||
|
|
@ -387,7 +387,7 @@ function execute(port) {
|
|||
);
|
||||
} else {
|
||||
request.get(
|
||||
"http://localhost:3000" + req.path + "/index.html",
|
||||
"http://localhost:" + port + req.path + "/index.html",
|
||||
(err, response, body) => {
|
||||
if (!err) {
|
||||
res.send(body);
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
"shelljs": "^0.7.8"
|
||||
},
|
||||
"name": "docusaurus",
|
||||
"version": "1.0.0-alpha.13",
|
||||
"version": "1.0.0-alpha.14",
|
||||
"bin": {
|
||||
"docusaurus-start": "./lib/start-server.js",
|
||||
"docusaurus-build": "./lib/build-files.js",
|
||||
|
|
|
|||
Loading…
Reference in New Issue