Skip to content

Commit 9c994d5

Browse files
authored
fix: properly resolve static dir of mashlib
this fixes #1383
1 parent 78ab9d2 commit 9c994d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/create-app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function createApp (argv = {}) {
6767

6868
// Serve the public 'common' directory (for shared CSS files, etc)
6969
app.use('/common', express.static(path.join(__dirname, '../common')))
70-
app.use('/', express.static(path.join(__dirname, '../node_modules/mashlib/dist'), { index: false }))
70+
app.use('/', express.static(path.dirname(require.resolve('mashlib/dist/index.html')), { index: false }))
7171
routeResolvedFile(app, '/common/js/', 'solid-auth-client/dist-lib/solid-auth-client.bundle.js')
7272
routeResolvedFile(app, '/common/js/', 'solid-auth-client/dist-lib/solid-auth-client.bundle.js.map')
7373
app.use('/.well-known', express.static(path.join(__dirname, '../common/well-known')))

0 commit comments

Comments
 (0)