diff --git a/src/server/main.ts b/src/server/main.ts index 6c79456..c24b1c4 100644 --- a/src/server/main.ts +++ b/src/server/main.ts @@ -41,6 +41,13 @@ app.use(passport.initialize()); // http://expressjs.com/en/advanced/best-practice-security.html#at-a-minimum-disable-x-powered-by-header app.disable('x-powered-by'); +app.use( + '/tracker.js', + express.static('./public/tracker.js', { + maxAge: '7d', + }) +); + app.use('/api/website', websiteRouter); app.use('/api/workspace', workspaceRouter); app.use('/telemetry', telemetryRouter);