taunoha
How to render image dynamically in Nuxt?
The difference between the public and assets folders is described here: https://nuxt.com/docs/getting-started/assets
4 replies
Server side worker thread
It sounds like you need a WebSocket or a stream on the server. Then, you could use the useState composable to react to changes.
In one of my projects, I needed to check the user's data (are there active contracts etc.). For that purpose, I created a plugin that will hydrate the data and the pages will just react to the changes to the state.
10 replies
How to render single component on server to HTML
Maybe this would help? https://nuxt.com/docs/guide/directory-structure/components#server-components
4 replies
Sending formData to /server with files and parsing body
Have you tried to send the image data as base64 to the server? Then, you could convert the base64 into a buffer and store it somewhere on the server.
To convert the base64 image data to a buffer, I have used this package https://www.npmjs.com/package/data-uri-to-buffer
6 replies
How to add custom fonts project wide
If you are not using any CDN (for example, google fonts), you could write your own CSS file and define your font-face there https://nuxt.com/docs/api/configuration/nuxt-config#css
Your local custom font file or files should be in the "public" folder.
4 replies
How to add custom fonts project wide
Hi! What do you mean by adding fonts project wide? Or you just look a way to add custom links to the head? https://nuxt.com/docs/api/configuration/nuxt-config#head
4 replies