diff --git a/index.js b/index.js index 3f458a4..0be1f5a 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,3 @@ -import path from "node:path"; - import express from "express"; import { handleWebFinger } from "./lib/webfinger.js"; @@ -50,9 +48,7 @@ export default class ActivityPubEndpoint { }; } - get filePath() { - return path.dirname(new URL(import.meta.url).pathname); - } + // filePath is set by Indiekit's plugin loader via require.resolve() /** * WebFinger routes — mounted at /.well-known/ diff --git a/package.json b/package.json index d9d6682..b40a939 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rmdes/indiekit-endpoint-activitypub", - "version": "0.1.0", + "version": "0.1.1", "description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.", "keywords": [ "indiekit",