Skip to content

Commit

Permalink
Add WAGTAILAPI_BASE_URL to env vars for GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbiggs committed Feb 3, 2025
1 parent a560f31 commit f84292c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
DATABASE_PASSWORD: postgres
DATABASE_HOST: localhost
DATABASE_PORT: 5432
WAGTAILAPI_BASE_URL: http://host.docker.internal:8000
services:
postgres:
image: postgres:16.0
Expand Down
2 changes: 1 addition & 1 deletion config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
BASE_DIR = os.path.dirname(PROJECT_DIR)
WAGTAILAPI_BASE_URL = os.getenv("WAGTAILAPI_BASE_URL", "http://host.docker.internal:8000")
WAGTAILAPI_BASE_URL = os.getenv("WAGTAILAPI_BASE_URL", "")
WAGTAIL_HEADLESS_PREVIEW = {
"CLIENT_URLS": {
"default": os.getenv("WAGTAILADMIN_HEADLESS_PREVIEW_URL", "{SITE_ROOT_URL}"),
Expand Down

0 comments on commit f84292c

Please sign in to comment.