Closed finestgecko closed 1 year ago
I'm afraid multi tenancy is currently not supported, only the root routes are loaded.
The manifest file is only required for components, as these can run client-side. Everything outside of a component is not included in the manifest, because everything is available on the server anyway.
@microeinhundert Do you think support for subdomains is something that could be considered for the roadmap?
Yes this could be implemented in the future, but currently there are features I want to implement first. Since this is just a hobby project and my first try at Open Source, I can't say for sure when this feature will be implemented.
I'm building a multi-tenant application, where each tenant has a subdomain. I use a route group for this.
The routes look like this:
I'm using the form component:
When I visit
http://<tenant>.dev.local/auth/login
, I get this error in the browser:I also tried
action="/auth/login"
but got the same error. Looking at the types, it seems like only the route identifier is applicable here.If I comment out the form, it works as expected.
Looking at the stack trace, then referring to
findRouteOrFail
:https://github.com/microeinhundert/radonis/blob/e3d02a1a7c0264446c1b8131c8b5e18b5cdc718c/packages/radonis-hooks/src/hooks/useUrlBuilder.ts#L22
It seems the routes are coming from the manifest, so I will include that here:
(it's the same regardless of whether I uncomment
.domain()
or not)At the moment, I'm still figuring out how things work, but would love to start contributing once I'm a bit more familiar with the codebase.