Skip to content

Commit b799381

Browse files
committed
boilermaker fixes
1 parent ca5bcc4 commit b799381

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node_modules
2-
secrets.js
32
public/bundle.js
43
public/bundle.js.map
54
secrets.js

server/api/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const router = require('express').Router()
22
module.exports = router
33

4-
router.use('/users', require('./users'))
4+
router.use('/users', require('./users')) // matches all requests to /api/users/
55

66
router.use((req, res, next) => {
77
const error = new Error('Not Found')

server/db/db.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
const Sequelize = require('sequelize')
22
const db = new Sequelize(
33
process.env.DATABASE_URL || 'postgres://localhost:5432/hacktive', {
4-
logging: false
4+
logging: false// unless you like the logs
5+
// ...and there are many other options you may want to play with
56
}
67
)
78
module.exports = db

webpack.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ module.exports = {
2525
'style-loader',
2626
'css-loader',
2727
]
28+
},
29+
{
30+
test: /\.svg$|\.ttf?|\.woff$|\.woff2|\.eof|\.eot/,
31+
loader: 'file-loader'
2832
}
2933
]
3034
},

0 commit comments

Comments
 (0)