drupflare/worker - v1.0.4
    Preparing search index...

    Function publicFileUri

    • The public:// uri a GET for a public file names, or undefined.

      Drupal expects the web server to answer these from disk and has no route for them, so without this every public original is a 404 (unless the optional R2 mirror is configured). styles/ stays Drupal's, because its image style controller owns that prefix.

      Parameters

      • method: string
      • pathname: string

      Returns string | undefined