How to add static files to public folder?
See original GitHub issueHi guys,
Iām trying to add manifest.json
& service-worker.js
to allow PWA
feature. Below are my steps:
-
in
renderHtml.js
, Iām trying to add those lines<link rel="manifest" href="/manifest.json">
-
I added 2 files to public folder:
But it always got
404
for those files:
Which steps I missed to achieve it?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Serving static files in Express
To serve static files such as images, CSS files, and JavaScript files, use the express.static built-in middleware function in Express. ... The root...
Read more >Basic Features: Static File Serving - Next.js
js can serve static files, like images, under a folder called public in the root directory. Files inside public can then be referenced...
Read more >Serving Static Resources in Node.js - TutorialsTeacher
In this section, you will learn how to serve static resources like images, css, JavaScript or other static files using Express.js and node-static...
Read more >Using the Static Folder - Gatsby
You can create a folder named static at the root of your project. Every file you put into that folder will be copied...
Read more >How to manage static files (e.g. images, JavaScript, CSS)
Store your static files in a folder called static in your app. For example my_app/static/my_app/example.jpg . Serving the files. In addition to theseĀ ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@hienhuynhtm Interesting issue. I will find time to configure out how to achieve it š
Close due to https://github.com/wellyshen/react-cool-starter/pull/309