gatsbyjs serving up assets


Assets like javascript or css files are served up from static directory. You do not have to specify it.

For example,  if you place your javascript file in "static/js/worker.js", then you only need to specify it as '/js/worker.js' in your react components.

----static
   ----js
     --- worker.js

Well it can takes a couple of minutes to figure this out.





Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type