mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-18 00:06:05 +02:00
Bluesky: update Ansible patches to use new geolocation module path
Replaced hardcoded path to src/state/geolocation.tsx with variable BLUESKY_GEOLOCATION_PATH pointing to src/state/geolocation/index.tsx. This ensures BAPP_CONFIG_URL and IPCC_URL replacements work with the updated Bluesky code structure. Ref: https://chatgpt.com/share/68cb16d5-d698-800f-97e5-cc7d9016f27c
This commit is contained in:
@@ -10,12 +10,12 @@
|
|||||||
|
|
||||||
- name: Force BAPP_CONFIG_URL to same-origin /config
|
- name: Force BAPP_CONFIG_URL to same-origin /config
|
||||||
ansible.builtin.replace:
|
ansible.builtin.replace:
|
||||||
path: "{{ BLUESKY_SOCIAL_APP_DIR }}/src/state/geolocation.tsx"
|
path: "{{ BLUESKY_GEOLOCATION_PATH }}"
|
||||||
regexp: '^\s*const\s+BAPP_CONFIG_URL\s*=\s*.*$'
|
regexp: '^\s*const\s+BAPP_CONFIG_URL\s*=\s*.*$'
|
||||||
replace: "const BAPP_CONFIG_URL = '/config'"
|
replace: "const BAPP_CONFIG_URL = '/config'"
|
||||||
|
|
||||||
- name: Force IPCC_URL to same-origin /ipcc
|
- name: Force IPCC_URL to same-origin /ipcc
|
||||||
ansible.builtin.replace:
|
ansible.builtin.replace:
|
||||||
path: "{{ BLUESKY_SOCIAL_APP_DIR }}/src/state/geolocation.tsx"
|
path: "{{ BLUESKY_GEOLOCATION_PATH }}"
|
||||||
regexp: '^\s*const\s+IPCC_URL\s*=\s*.*$'
|
regexp: '^\s*const\s+IPCC_URL\s*=\s*.*$'
|
||||||
replace: "const IPCC_URL = '/ipcc'"
|
replace: "const IPCC_URL = '/ipcc'"
|
||||||
|
@@ -4,7 +4,8 @@ application_id: "web-app-bluesky"
|
|||||||
## Bluesky
|
## Bluesky
|
||||||
|
|
||||||
## Social App
|
## Social App
|
||||||
BLUESKY_SOCIAL_APP_DIR: "{{ docker_compose.directories.services }}/social-app"
|
BLUESKY_SOCIAL_APP_DIR: "{{ [ docker_compose.directories.services, 'social-app' ] | path_join }}"
|
||||||
|
BLUESKY_GEOLOCATION_PATH: "{{ [ BLUESKY_SOCIAL_APP_DIR,'src/state/geolocation/index.tsx' ] | path_join }}"
|
||||||
|
|
||||||
# This should be removed when the following issue is closed:
|
# This should be removed when the following issue is closed:
|
||||||
# https://github.com/bluesky-social/pds/issues/52
|
# https://github.com/bluesky-social/pds/issues/52
|
||||||
|
Reference in New Issue
Block a user