Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong URL for multisite media upload #15

Closed
carlalexander opened this issue Aug 30, 2023 · 1 comment · Fixed by #20, #24, #25 or #26
Closed

Wrong URL for multisite media upload #15

carlalexander opened this issue Aug 30, 2023 · 1 comment · Fixed by #20, #24, #25 or #26

Comments

@carlalexander
Copy link
Member

Reported by @pmgarman

Image uploaded on a multisite install has the wrong URL.

image

ymir.yml config used for example:

id: 810
name: garman-dev
type: bedrock
environments:
  staging:
    architecture: arm64
    php: 8.1
    cache: ymir
    cdn:
      caching: assets
    cron: false
    warmup: false
    database:
      server: ymir
      name: garman_dev_staging
    domain:
      - staging.garman.dev
      - '*.staging.garman.dev'
    build:
      commands:
        - 'sh ./build.sh'
      include:
        - web/app/plugins/cloudflare/config.json
        - web/app/plugins/cloudflare/composer.json
        - web/app/plugins/query-monitor/assets
@carlalexander
Copy link
Member Author

carlalexander commented Sep 5, 2023

Ok, so I suck and failed to notice the caching: assets. You need caching: enabled. However, there's still an issue that, with multisite, the media URL is always the first domain mapped to a project which isn't normal behaviour for WordPress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment