Skip to content

Tag: javascript

How to configure next.config.js file on right way

In my next.config.js I have the following configuration: Last thing which I need to add here is next-fonts plugin. I am not sure how to export withFounts in the right way. I need next-fonts plugin to be able to use ‘fonts’ icons. Answer You can do this: You can try to use next-compose

How to update user data in MongoDB using node.js

I have a simple express app with MongoDB connection where I can register a user. Registering and logging in and out works fine but now I’m trying to add possibility to edit user data. My code doesn’t throw any errors but it doesn’t update the data in database neither. I’ve tried to rea…

How to import SVG into Next.js component?

I am trying to import an SVG image from file into a Next.js component. In the assets folder I have google.svg (icon): I need to import that SVG inside of this inside of the Next.js component: I installed this package: https://www.npmjs.com/package/next-images and set configuration based on that documentation …