Skip to content

Refactor analytics env parsing to avoid committed .env.test #16

Description

@jokroese

The new incoming move to a monorepo introduces .env.test so Matomo tests can load PUBLIC_MATOMO_* variables before $env/dynamic/public is evaluated. This isn't nice. Get rid of it.

Refactor src/lib/analytics/matomo.ts so pure functions and config parsing can be tested with explicit fixture env objects, without needing process-level env setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions