node-reload | 基于nodejs的云端热部署原理与实现 a method of nodejs code hot reload | Reactive Programming library
kandi X-RAY | node-reload Summary
kandi X-RAY | node-reload Summary
基于nodejs的云端热部署原理与实现 a method of nodejs code hot reload without restart
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of node-reload
node-reload Key Features
node-reload Examples and Code Snippets
Community Discussions
Trending Discussions on node-reload
QUESTION
In my Gatsby app user is able to upload an image which is being saved locally and ideally displayed but gatsby-image
doesn't see new image this is how my Image.js
file looks like.
I'm thinking that the graphql data needs to be somehow refreshed because the new image doesn't even show if I do console.log(data.images)
but how can I do that?
ANSWER
Answered 2020-Nov-27 at 17:46Of course, you need to refresh/rebuild the application to update the system with your image. Gatsby, compiles, bundles and processes all the assets in the build/develop time so if you add a fresh image, you will need to rebuild your application to allow Gatsby to create a schema and a node for that image.
Given your scenario, you have a few options:
Use a native
img
tag and recreate the benefits ofgatsby-image
using others third-party dependencies (lazyloading, etc).Create a webhook to trigger a rebuild when an image is uploaded. A webhook is a way for an application to notify another application when a new event has occurred in real-time. I wouldn't recommend this approach since it will cause a breakdown in your application while it's being deployed.
Use some other SSR framework rather than Gatsby.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install node-reload
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page