diff --git a/packages/ditto/app.ts b/packages/ditto/app.ts index 3c11a78c..0c677517 100644 --- a/packages/ditto/app.ts +++ b/packages/ditto/app.ts @@ -178,7 +178,7 @@ const app = new Hono({ strict: false }); /** User-provided files in the gitignored `public/` directory. */ const publicFiles = serveStatic({ root: './public/' }); /** Static files provided by the Ditto repo, checked into git. */ -const staticFiles = serveStatic({ root: './static/' }); +const staticFiles = serveStatic({ root: new URL('./static/', import.meta.url).pathname }); app.use('*', cacheControlMiddleware({ noStore: true })); diff --git a/static/favicon.ico b/packages/ditto/static/favicon.ico similarity index 100% rename from static/favicon.ico rename to packages/ditto/static/favicon.ico diff --git a/static/images/avi.png b/packages/ditto/static/images/avi.png similarity index 100% rename from static/images/avi.png rename to packages/ditto/static/images/avi.png diff --git a/static/images/banner.png b/packages/ditto/static/images/banner.png similarity index 100% rename from static/images/banner.png rename to packages/ditto/static/images/banner.png diff --git a/static/images/thumbnail.png b/packages/ditto/static/images/thumbnail.png similarity index 100% rename from static/images/thumbnail.png rename to packages/ditto/static/images/thumbnail.png