You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.
I am currently working on a project that uses Next.js and I want to make use of Krabs for a multi-tenant approach. One thing I wanted to do was to have what I call 'common pages' between all the tenants. For example creating a resources page in the default Next.js pages directory would then allow that page to be used by all tenants.
I have a fork of the repo and believe that I have been able to achieve this by passing an extra options parameter in to the default krabs() function call. The options parameter is an object that currently contains a commonPages boolean, this could be extended going forward. The update to the utils/routes/resolve.ts file is as follows:
Hi there!
I am currently working on a project that uses Next.js and I want to make use of Krabs for a multi-tenant approach. One thing I wanted to do was to have what I call 'common pages' between all the tenants. For example creating a
resources
page in the default Next.jspages
directory would then allow that page to be used by all tenants.I have a fork of the repo and believe that I have been able to achieve this by passing an extra
options
parameter in to the defaultkrabs()
function call. The options parameter is an object that currently contains acommonPages
boolean, this could be extended going forward. The update to theutils/routes/resolve.ts
file is as follows:As you can see the modification to the function is minor but offers that little bit more flexibility.
I would love to hear any and all of your feedback on what you think of potentially adding this functionality to Krabs.
The text was updated successfully, but these errors were encountered: