Skip to content

Commit

Permalink
Fix typicode#1079 404 error on home page
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode authored and BigBlueHat committed Mar 2, 2020
1 parent d945126 commit 1285fcd
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/server/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const bodyParser = require('./body-parser')

module.exports = function(opts) {
const userDir = path.join(process.cwd(), 'public')
const defaultDir = path.join(__dirname, '../front')
const defaultDir = path.join(__dirname, '../../public')
const staticDir = fs.existsSync(userDir) ? userDir : defaultDir

opts = Object.assign({ logger: true, static: staticDir }, opts)
Expand Down

0 comments on commit 1285fcd

Please sign in to comment.