Skip to content

Commit d87761f

Browse files
_
1 parent edd2426 commit d87761f

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

afterpython/cli/commands/build.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -160,29 +160,9 @@ def build(ctx, dev: bool, execute: bool):
160160
click.echo(f"Building {content_type}/...")
161161
# NOTE: needs to set BASE_URL so that the project website can link to the content pages correctly at e.g. localhost:5173/doc
162162
# BASE_PATH is set by the GitHub Actions workflow
163-
base_path = os.getenv("BASE_PATH", "")
164-
print(
165-
f"DEBUG: os.environ.get('BASE_PATH'): {os.environ.get('BASE_PATH', 'NOT_FOUND')}",
166-
flush=True,
167-
)
168-
print(
169-
f"DEBUG: 'BASE_PATH' in os.environ: {'BASE_PATH' in os.environ}",
170-
flush=True,
171-
)
172-
print(
173-
f"DEBUG: 'BASE_PATH' in node_env: {'BASE_PATH' in node_env}", flush=True
174-
)
175-
print(f"DEBUG: base_path variable: '{base_path}'", flush=True)
163+
base_path = os.getenv("BASE_PATH", "/afterpython")
176164
base_url = f"{base_path}/{content_type}"
177-
print(f"DEBUG: Setting BASE_URL to: '{base_url}'", flush=True)
178165
build_env = {**node_env, "BASE_URL": base_url}
179-
print(
180-
f"DEBUG: 'BASE_URL' in build_env: {'BASE_URL' in build_env}", flush=True
181-
)
182-
print(
183-
f"DEBUG: build_env['BASE_URL']: '{build_env.get('BASE_URL', 'NOT_FOUND')}'",
184-
flush=True,
185-
)
186166
result = subprocess.run(
187167
[
188168
"myst",

0 commit comments

Comments
 (0)