1
0
Fork 0
mirror of synced 2024-06-28 02:50:50 +12:00

auth - standard-components not loading, windows

This commit is contained in:
Michael Shanks 2020-10-18 21:45:46 +01:00
parent 31ec8322ae
commit 158240bc3b
2 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@ export const loadBudibase = async opts => {
for (let library of libraries) {
// fetch the JavaScript for the component libraries from the server
componentLibraryModules[library] = await import(
`/componentlibrary?library=${encodeURI(library)}`
`/componentlibrary?library=${encodeURI(library)}&appId=${appId}`
)
}

View file

@ -198,7 +198,7 @@ exports.serveComponentLibrary = async function(ctx) {
// default to homedir
let componentLibraryPath = resolve(
budibaseAppsDir(),
ctx.user.appId,
ctx.query.appId,
"node_modules",
decodeURI(ctx.query.library),
"package",
@ -215,7 +215,7 @@ exports.serveComponentLibrary = async function(ctx) {
// TODO: component libs should be versioned based on app version
if (process.env.CLOUD) {
const appId = ctx.user.appId
const appId = ctx.query.appId
const S3_URL = encodeURI(
`https://${appId}.app.budi.live/assets/componentlibrary/${ctx.query.library}/dist/index.js`
)