🧩 Plasmo Developers�PD
🧩 Plasmo Developers3y ago
3 replies
lab

CS Config Not evaluated?

export const config: PlasmoCSConfig = {
  matches:
    process.env.NODE_ENV === "production"
      ? ["<all_urls>"]
      : ["http://localhost:3000/*"]
}

extension:dev: :red_circle: ERROR  | Invalid Web Extension manifest
extension:dev: :yellow_circle: 20     | Missing property matches


why is that? when I declare the value of matches outside of the config it ignores the config (content script is loaded on every url ...)
Was this page helpful?