Skip to content

Conversation

@aram356
Copy link
Collaborator

@aram356 aram356 commented Jan 13, 2026

Closes #168

@aram356 aram356 marked this pull request as draft January 13, 2026 20:59
@aram356 aram356 self-assigned this Jan 22, 2026
@aram356 aram356 marked this pull request as ready for review January 22, 2026 16:33
Copy link
Collaborator

@ChristianPavilonis ChristianPavilonis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty good, what do you think of the Error/404 comment?

// - Exact paths like "/prebid.min.js" match only that path
// - Wildcard paths like "/static/prebid/*" match anything under that prefix
// and are filtered by PREBID_SCRIPT_SUFFIXES in matches_script_pattern()
vec![
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Could do the following to avoid duplication:

fn default_script_patterns() -> Vec<String> {
    PREBID_SCRIPT_SUFFIXES.iter().map(|&s| s.to_owned()).collect()
}

self.handle_third_party_ad(settings, req).await
}
// Serve empty JS for matching script patterns
Method::GET if self.matches_script_pattern(&path) => self.handle_script_handler(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 Should we error or respond with a 404?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

As publisher I would like to configure many prebid script handlers

3 participants