mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
feat(docs): add Plausible analytics script to Docusaurus config (#11517)
* feat(docs): add Plausible analytics script to Docusaurus config * feat(docs): conditionally include Plausible analytics script based on environment
This commit is contained in:
parent
1391b5a789
commit
86f12c9226
@ -32,6 +32,18 @@ const config: Config = {
|
||||
locales: ["en"],
|
||||
},
|
||||
|
||||
// Plausible cookieless analytics for tracking site usage while respecting privacy
|
||||
scripts:
|
||||
process.env.NODE_ENV === "production"
|
||||
? [
|
||||
{
|
||||
src: "https://plausible.io/js/script.hash.js",
|
||||
defer: true,
|
||||
"data-domain": "typeorm.io",
|
||||
},
|
||||
]
|
||||
: [],
|
||||
|
||||
presets: [
|
||||
[
|
||||
"classic",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user