Closed djuelg closed 3 months ago
You can always override that api in dashboard.init on the backend to return a bundle from somewhere else that you like. I think that can work.
Thanks, that helped! The solution looks something like this:
Dashboard.init({
override: {
functions: (originalImplementation) => {
return {
...originalImplementation,
getDashboardBundleLocation: async function () {
return `https://MY-LOCAL-CDN/dashboard@0.11.1/build/`;
}
}
}
}
})
Thanks, that helped! The solution looks something like this:
Dashboard.init({ override: { functions: (originalImplementation) => { return { ...originalImplementation, getDashboardBundleLocation: async function () { return `https://MY-LOCAL-CDN/dashboard@0.11.1/build/`; } } } } })
cdn.jsdelivr.net is down right now due to cert errors, so this was really helpful, thanks!
Dashboard.init({
override: {
functions: (originalImplementation) => {
return {
...originalImplementation,
getDashboardBundleLocation: async function() {
return `https://fastly.jsdelivr.net/gh/supertokens/dashboard@v0.11/build/`
}
}
}
}
}),
Hopefully they fix it soon!
Hi, I am currently working on implementing a user management solution with Supertokens. I have planned to run the solution in an environment without internet access.
However, if I see it correctly, it is not possible to use the dashboard without internet as it is loaded via the getDashboardBundleLocation method from the hardcoded address cdn.jsdelivr.net. Are there any plans to mitigate this problem in the future or to offer configuration options?
Kind regards, Dominik