如何在 cube.js 中启用多租户模式:一份详细指南
最编程
2024-01-16 21:36:07
...
module.exports = {
contextToAppId: ({ authInfo }) => `CUBEJS_APP_${authInfo.myappid}`,
// scheduledRefreshContexts should return array of objects, which can declare authInfo
scheduledRefreshContexts: async () => [
{
authInfo: {
myappid: "demoappid",
u: {
bucket: "demo"
}
}
},
{
authInfo: {
myappid: "demoappid2",
u: {
bucket: "demo2"
}
}
}
]
};
下一篇: 搞定矩阵连乘问题的动态规划策略