Content script runs on all URLs. Doesn't respect the config.matches.

Pretty much as described in the title. I configured the context script according to Plasmo docs, but it doesn't behave as expected.
export const config = {
matches: ["https://x.com/*"],
} satisfies PlasmoCSConfig;
export const config = {
matches: ["https://x.com/*"],
} satisfies PlasmoCSConfig;
I expect it to only run on x.com, instead it runs on every origin. Am I doing this right?
3 Replies
dinislam
dinislamOP•5mo ago
manifest.json after building for prod. Clearly a bug
No description
Arcane
Arcane•5mo ago
@dinislam has reached level 1. GG!
dinislam
dinislamOP•5mo ago
After changing my code to not use "satisfies" it starts to work:
export const config: PlasmoCSConfig = {
matches: ["https://x.com/*"]
};
export const config: PlasmoCSConfig = {
matches: ["https://x.com/*"]
};
Why does the typescript syntax matter here?
Want results from more Discord servers?
Add your server