title: Magento 2.4.3 PWA Studio image optimization not working with Upward PHP
body: <p>When I start up my PWA through <code>yarn watch</code> command, the onboard image optimization through hastily seems to be working fine. All of the images are returned in webp format.</p>
  <p>When I do the <code>yarn build</code> command and point UPWARD-PHP connector to the <code>&lt;pwa root&gt;/packages/venia-concept/dist/upward.yml</code> this does not happen. Images return in their original format.
  Images still have all of the parameters, like:</p>
  <pre><code>?auto=webp&amp;format=png&amp;quality=85
  </code></pre>
  <p>This is my upward.yml config:</p>
  <pre><code>veniaResponse:
    resolver: conditional
    when:
      - matches: request.url.pathname
        pattern: ^/(graphql|rest|media)(/|$)
        use: veniaProxy
      - matches: request.url.pathname
        pattern: ^/(robots\.txt|favicon\.ico|manifest\.json)
        use: staticFromRoot
      - matches: fileExtension
        pattern: (js|json|png|svg|ico|css|txt|woff|ttf)
        use: veniaStatic
    default: veniaAppShell
  staticFromRoot:
    inline:
      status: 200
      headers:
        resolver: inline
        inline:
          content-type: contentTypeFromExtension
      body:
        resolver: file
        parse:
          inline: text
        encoding:
          inline: binary
        file:
          resolver: template
          engine: mustache
          provide:
            filename: request.url.pathname
          template:
            resolver: inline
            inline: './venia-static/{{ filename }}'
  contentTypeFromExtension:
    when:
      - matches: fileExtension
        pattern: ^ico$
        use:
          inline: image/x-icon
      - matches: fileExtension
        pattern: ^txt$
        use:
          inline: text/plain
      - matches: fileExtension
        pattern: ^json$
        use:
          inline: application/json
    default:
      inline: text/html
  fileExtension:
    resolver: conditional
    when:
      - matches: request.url.pathname
        pattern: \.(.*)$
        use: $match.$1
    default:
      inline: ''
  veniaProxy:
    resolver: proxy
    target: env.MAGENTO_BACKEND_URL
    ignoreSSLErrors:
      when:
        - matches: env.NODE_ENV
          pattern: production
          use:
            inline: false
      default:
        inline: true
  veniaAppShell:
    resolver: inline
    inline:
      status:
        resolver: inline
        inline: 200
      headers:
        resolver: inline
        inline:
          content-type:
            inline: text/html
      body:
        resolver: file
        file:
          resolver: inline
          inline: ./index.html
  veniaStatic:
    resolver: directory
    directory:
      resolver: inline
      inline: .
  veniaTemplateIncludes:
    resolver: directory
    directory:
      resolver: inline
      inline: ./templates
  veniaStaticIncludes:
    resolver: directory
    directory:
      resolver: inline
      inline: ./venia-static
  status: veniaResponse.status
  headers: veniaResponse.headers
  body: veniaResponse.body
  
  </code></pre>
  <p>Am I missing some configuration, or does it not have the functionality to optimize images, because it seems that upward-js is working correctly here.</p>