Move static/ into packages/ditto

This commit is contained in:
Alex Gleason 2025-02-15 14:41:57 -06:00
parent 5ee682ef8f
commit 2ccd4bad96
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
5 changed files with 1 additions and 1 deletions

View file

@ -178,7 +178,7 @@ const app = new Hono<AppEnv>({ 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 }));

View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View file

Before

Width:  |  Height:  |  Size: 4 KiB

After

Width:  |  Height:  |  Size: 4 KiB

View file

Before

Width:  |  Height:  |  Size: 81 B

After

Width:  |  Height:  |  Size: 81 B

View file

Before

Width:  |  Height:  |  Size: 158 KiB

After

Width:  |  Height:  |  Size: 158 KiB