# Creating static files to serve CSS and JS to html files

**URL:** <https://discourse.nodered.org/t/creating-static-files-to-serve-css-and-js-to-html-files/93437>\
**Category:** General\
**Created:** [25 November 2024 10:08 UTC](https://discourse.nodered.org/t/creating-static-files-to-serve-css-and-js-to-html-files/93437 "2024-11-25T10:08:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Logan251999](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/logan251999/32/95869_2.png) [@Logan251999](https://discourse.nodered.org/u/Logan251999)\
**Post date:** [25 November 2024 10:08 UTC](https://discourse.nodered.org/t/creating-static-files-to-serve-css-and-js-to-html-files/93437/1 "2024-11-25T10:08:02Z")

</div>

- I have html css js files in my local, without using expres how to serve static file, set the static file in css,js how to use settings.js file?

I created the endpoint

when i acess /api/login1 it's output ?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [25 November 2024 11:33 UTC](https://discourse.nodered.org/t/creating-static-files-to-serve-css-and-js-to-html-files/93437/2 "2024-11-25T11:33:10Z")

</div>

This same question is already being discussed here: [How to Use HTTP-In Nodes in Node-RED to Serve Static HTML Pages Instead of Separate Express Code - #9 by gregorius](https://discourse.nodered.org/t/how-to-use-http-in-nodes-in-node-red-to-serve-static-html-pages-instead-of-separate-express-code/93434/9) - with almost identical screenshots.

Is this a class assignment?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 February 2025 11:33 UTC](https://discourse.nodered.org/t/creating-static-files-to-serve-css-and-js-to-html-files/93437/3 "2025-02-23T11:33:49Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
