fmt
This commit is contained in:
parent
34c8da592a
commit
1732243f26
2 changed files with 7 additions and 7 deletions
|
|
@ -38,9 +38,8 @@ app.use(express.json({ limit: "100mb" }));
|
|||
app.use(express.static("public"));
|
||||
|
||||
// Serve the official Plausible tracker (npm: @plausible-analytics/tracker) from node_modules.
|
||||
const plausibleTrackerPath = require.resolve(
|
||||
"@plausible-analytics/tracker/plausible.js",
|
||||
);
|
||||
const plausibleTrackerPath =
|
||||
require.resolve("@plausible-analytics/tracker/plausible.js");
|
||||
|
||||
app.get("/vendor/plausible.js", (req, res) => {
|
||||
res.sendFile(plausibleTrackerPath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue