mirror of
https://github.com/usetrmnl/terminus.git
synced 2026-08-13 14:29:27 -07:00
Added public fonts to routes as static assets
Necessary to ensure our link:https://trmnl.com/framework[Framework] can load all fonts as locally served from `public/fonts` on this server. Issue: 287 Milestone: minor
This commit is contained in:
+1
-1
@@ -162,7 +162,7 @@ module Terminus
|
||||
|
||||
slice(:health, at: "/up") { root to: "show" }
|
||||
|
||||
use Rack::Static, root: "public", urls: ["/.well-known/security.txt", "/uploads"]
|
||||
use Rack::Static, root: "public", urls: ["/.well-known/security.txt", "/fonts", "/uploads"]
|
||||
use Aspects::Screens::Designer::Middleware, pattern: %r(/preview/(?<name>.+))
|
||||
end
|
||||
# rubocop:enable Metrics/ClassLength
|
||||
|
||||
Reference in New Issue
Block a user