We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78ab9d2 commit 9c994d5Copy full SHA for 9c994d5
1 file changed
lib/create-app.js
@@ -67,7 +67,7 @@ function createApp (argv = {}) {
67
68
// Serve the public 'common' directory (for shared CSS files, etc)
69
app.use('/common', express.static(path.join(__dirname, '../common')))
70
- app.use('/', express.static(path.join(__dirname, '../node_modules/mashlib/dist'), { index: false }))
+ app.use('/', express.static(path.dirname(require.resolve('mashlib/dist/index.html')), { index: false }))
71
routeResolvedFile(app, '/common/js/', 'solid-auth-client/dist-lib/solid-auth-client.bundle.js')
72
routeResolvedFile(app, '/common/js/', 'solid-auth-client/dist-lib/solid-auth-client.bundle.js.map')
73
app.use('/.well-known', express.static(path.join(__dirname, '../common/well-known')))
0 commit comments