diff --git a/saas/lib/fizzy/saas/engine.rb b/saas/lib/fizzy/saas/engine.rb index d4d461e8d..40b5b49d0 100644 --- a/saas/lib/fizzy/saas/engine.rb +++ b/saas/lib/fizzy/saas/engine.rb @@ -17,6 +17,11 @@ class Engine < ::Rails::Engine app.config.assets.paths << root.join("app/assets/stylesheets") end + initializer "fizzy_saas.public_files" do |app| + app.middleware.insert_after ActionDispatch::Static, ActionDispatch::Static, root.join("public").to_s, + headers: app.config.public_file_server.headers + end + initializer "fizzy.saas.routes", after: :add_routing_paths do |app| # Routes that rely on the implicit account tenant should go here instead of in +routes.rb+. app.routes.prepend do diff --git a/saas/public/.well-known/assetlinks.json b/saas/public/.well-known/assetlinks.json new file mode 100644 index 000000000..4fea20162 --- /dev/null +++ b/saas/public/.well-known/assetlinks.json @@ -0,0 +1,11 @@ +[ + { + "relation": ["delegate_permission/common.handle_all_urls"], + "target": { + "namespace": "android_app", + "package_name": "do.fizzy.app", + "sha256_cert_fingerprints": + ["3B:17:E4:FF:F0:2E:E0:CE:D7:94:F9:9E:71:3C:A8:14:7C:FA:B7:F2:99:35:98:03:E9:E0:EB:B3:6E:12:E2:0F"] + } + } +]