Since NextJS log is no longer part of webpack logs, we cannot use FilterWarningsPlugin
. Instead, use node level stdout filter, for example, intercept-stdout
.
Tag Archives: NodeJS
How to Delay ASS Subtitles
I was watching a series and had to shift my subtitles by 38 seconds every time I open a video. After a few times of pain, I ended up writing a script to cut the crap, have some fun, and get a bit into NodeJS file I/O! 😀
Continue readingMongoose Unique Not Working?!
Say we want the email
field on our User
model to be unique, so we set the Schema to be:
const UserSchema = new Schema({
email: {type: String, required: true, unique: true}
});
Somehow, it just doesn’t work. As it turns out, there are plenty of reasons why this wouldn’t work. Let’s see which one got you.
Continue reading