atakanyenel
atakanyenel

Reputation: 1375

Can node-red html be edite elsewhere?

I'm developing a node-red application right now that uses a html response. The html uses google maps, visual indicators and websockets. It is very hard to debug this system through node-red's little html editor. Is there a way to edit the html file through any normal editor (e.g. vs code) and then deploy the application again to see the effect ?

One solution that came to my mind was to read from an external file using the file node and return it as html, put I don't know if that works. Is there a better way ?

Upvotes: 0

Views: 148

Answers (1)

knolleary
knolleary

Reputation: 10117

You can create and edit static resources (html/css files etc) however you'd like and then serve them from Node-RED.

You have two options for serving static content:

  1. create corresponding HTTP In -> File In -> HTTP Response flows for each file you want to serve

  2. or use the httpStatic property in your settings.js file to identify a directory whose content should be automatically served by the runtime.

Upvotes: 1

Related Questions