diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-04-22 14:39:37 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-04-22 14:39:37 -0300 |
commit | d1319becac318e3ee46b6bb55b722eaf133628aa (patch) | |
tree | 950f4e5d86529f06abd5aaedce042105dc762118 /src/web-routes.js | |
parent | bc08bf2a2dc9ae6f07eb525d74ee5290294df516 (diff) |
web-routes: use web route for favicon.ico
Lets live-dev-server have a favicon.
Diffstat (limited to 'src/web-routes.js')
-rw-r--r-- | src/web-routes.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/web-routes.js b/src/web-routes.js index b93607d6..a49f6d0e 100644 --- a/src/web-routes.js +++ b/src/web-routes.js @@ -103,6 +103,14 @@ export async function identifyDynamicWebRoutes({ to: ['thumb.root'], statically: 'symlink', }, + + // {statically: 'copy'} is not workable for individual files + // at the moment, so this remains a symlink. + { + from: path.join(path.resolve(mediaPath), 'favicon.ico'), + to: ['shared.path', 'favicon.ico'], + statically: 'symlink', + }, ]), () => { |