Fix renaming
Some checks failed
Test / test (push) Failing after 7s
Deploy to Pages / deploy (push) Successful in 11s
Build and Publish Docker Image / build-and-push (push) Successful in 26s

This commit is contained in:
Andras Schmelczer 2026-06-06 22:15:03 +01:00
parent b6d3ec940b
commit 34c8da592a
3 changed files with 7 additions and 6 deletions

View file

@ -1,7 +1,7 @@
import { init } from "/vendor/vendored.js";
import { init } from "/vendor/plausible.js";
// Plausible analytics via the official npm tracker (@plausible-analytics/tracker).
// server.js serves /vendor/vendored.js straight from node_modules.
// server.js serves /vendor/plausible.js straight from node_modules.
init({
domain: "fizika.schmelczer.dev",
endpoint: "https://stats.schmelczer.dev/status",

View file

@ -38,10 +38,11 @@ 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/vendored.js");
const plausibleTrackerPath = require.resolve(
"@plausible-analytics/tracker/plausible.js",
);
app.get("/vendor/vendored.js", (req, res) => {
app.get("/vendor/plausible.js", (req, res) => {
res.sendFile(plausibleTrackerPath);
});