question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

How to add static files to public folder?

See original GitHub issue

Hi guys, Iā€™m trying to add manifest.json & service-worker.js to allow PWA feature. Below are my steps:

  1. in renderHtml.js, Iā€™m trying to add those lines <link rel="manifest" href="/manifest.json">

  2. I added 2 files to public folder: image

But it always got 404 for those files: image Uploading image.pngā€¦

Which steps I missed to achieve it?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
wellyshencommented, Oct 6, 2019

@hienhuynhtm Interesting issue. I will find time to configure out how to achieve it šŸ‘

0reactions
wellyshencommented, Dec 14, 2019
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found