Skip to content

Commit d608422

Browse files
Serve public common/ dir (for shared CSS files, etc)
1 parent 89fe55e commit d608422

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/create-app.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,15 @@ function createApp (argv = {}) {
4040

4141
argv.host = SolidHost.from({ port: argv.port, serverUri: argv.serverUri })
4242

43-
let configPath = initConfigPath(argv)
43+
const configPath = initConfigPath(argv)
4444

4545
argv.templates = initTemplateDirs(configPath)
4646

47-
let ldp = new LDP(argv)
48-
let app = express()
47+
const ldp = new LDP(argv)
48+
const app = express()
49+
50+
// Serve the public 'common' directory (for shared CSS files, etc)
51+
app.use('/common', express.static('common'))
4952

5053
initAppLocals(app, argv, ldp)
5154

0 commit comments

Comments
 (0)