Skip to content

Commit 1a98e94

Browse files
author
hthiagarajan
committed
Fix: Add Flask configuration for URL generation in build script
1 parent 31350c0 commit 1a98e94

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

build.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
from datetime import datetime
66

77
app = Flask(__name__)
8+
# Configure Flask for URL generation
9+
app.config.update(
10+
SERVER_NAME='localhost',
11+
APPLICATION_ROOT='/',
12+
PREFERRED_URL_SCHEME='http'
13+
)
814

915
def rst_to_html(rst_content):
1016
"""Convert RST content to HTML."""

0 commit comments

Comments
 (0)