```ruby
require "bugsnag"

module AppPrototype
  class Application < Roda
    use Bugsnag::Rack

    plugin :error_handler

    route do |r|
      r.run Main::Application.freeze.app
    end

    error do |e|
      Bugsnag.auto_notify e
      raise e
    end
  end
end
```

Use the static plugin to set a default path for assets
user
```ruby
require "bugsnag"

module AppPrototype
  class Application < Roda
    use Bugsnag::Rack

    plugin :static, ["/assets", "/robots.txt"], header_rules: [
       [:all, {'Cache-Control' => 'public, max-age=86400'}],
       ['/assets', {'Cache-Control' => 'public, max-age=31536000'}]
    ]

    plugin :error_handler

    route do |r|
      r.run Main::Application.freeze.app
    end

    error do |e|
      Bugsnag.auto_notify e
      raise e
    end
  end
end
```
assistant