mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-29 18:27:56 +02:00
Fix hardcoded port number
This commit is contained in:
parent
4fd8d5a105
commit
ea4a4f6fe3
2 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue