We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49fb741 commit c868ab1Copy full SHA for c868ab1
lib/create-app.js
@@ -21,6 +21,7 @@ const config = require('./server-config')
21
const defaults = require('../config/defaults')
22
const options = require('./handlers/options')
23
const debug = require('./debug').authentication
24
+const path = require('path')
25
26
const corsSettings = cors({
27
methods: [
@@ -51,7 +52,7 @@ function createApp (argv = {}) {
51
52
initViews(app, configPath)
53
54
// Serve the public 'common' directory (for shared CSS files, etc)
- app.use('/common', express.static('common'))
55
+ app.use('/common', express.static(path.join(__dirname, '../common')))
56
57
// Add CORS proxy
58
if (argv.proxy) {
0 commit comments