Skip to content

Commit 3efeec1

Browse files
Fix build after rebase - remove deleted permutive_proxy references
1 parent 3e8bd9a commit 3efeec1

File tree

2 files changed

+5
-23
lines changed

2 files changed

+5
-23
lines changed

crates/common/src/tsjs.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,7 @@ pub fn permutive_sdk_script_src() -> String {
138138
"/static/tsjs=tsjs-permutive-sdk.js".to_string()
139139
}
140140

141-
/// `/static` URL for the permutive shim bundle with cache-busting hash.
142-
pub fn permutive_shim_script_src() -> String {
143-
script_src_for(TsjsBundle::PermutiveShim)
144-
}
145-
146-
/// `<script>` tag for injecting the permutive shim runtime.
147-
pub fn permutive_shim_script_tag() -> String {
148-
script_tag_for(TsjsBundle::PermutiveShim, "async")
141+
/// `/static` URL for the permutive bundle (placeholder for future implementation).
142+
pub fn permutive_script_src() -> String {
143+
"/static/tsjs=tsjs-permutive.min.js".to_string()
149144
}

crates/fastly/src/main.rs

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ use trusted_server_common::auth::enforce_basic_auth;
88
use trusted_server_common::error::TrustedServerError;
99
use trusted_server_common::generic_proxy::{handle_generic_proxy, has_proxy_mapping};
1010
use trusted_server_common::integrations::IntegrationRegistry;
11-
use trusted_server_common::permutive_proxy::{
12-
handle_permutive_api_proxy, handle_permutive_secure_signals_proxy,
13-
};
1411
use trusted_server_common::permutive_sdk::handle_permutive_sdk;
1512
use trusted_server_common::proxy::{
1613
handle_first_party_click, handle_first_party_proxy, handle_first_party_proxy_rebuild,
@@ -68,21 +65,11 @@ async fn route_request(
6865
handle_generic_proxy(&settings, req).await
6966
}
7067

71-
// Permutive API proxy - /permutive/api/* → api.permutive.com/*
72-
(&Method::GET | &Method::POST, path) if path.starts_with("/permutive/api/") => {
73-
handle_permutive_api_proxy(&settings, req).await
74-
}
75-
76-
// Permutive Secure Signals proxy - /permutive/secure-signal/* → secure-signals.permutive.app/*
77-
(&Method::GET | &Method::POST, path) if path.starts_with("/permutive/secure-signal/") => {
78-
handle_permutive_secure_signals_proxy(&settings, req).await
79-
}
80-
8168
// Serve the Permutive SDK (proxied from Permutive CDN)
82-
(&Method::GET, path) if path.starts_with("/static/tsjs=tsjs-permutive-sdk") => {
69+
(Method::GET, path) if path.starts_with("/static/tsjs=tsjs-permutive-sdk") => {
8370
handle_permutive_sdk(&settings, req).await
8471
}
85-
72+
8673
// Serve the tsjs library (includes permutive-shim bundle)
8774
(Method::GET, path) if path.starts_with("/static/tsjs=") => {
8875
handle_tsjs_dynamic(&settings, req)

0 commit comments

Comments
 (0)