mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 16:17:25 +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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue