I packaged my node.js app with pkg. my app consists static folder which contains images. but with the packaged app, I can not access my images. with out packaging the images are accessible.
it gives me this message: GET localhost/owners/1634464527932imag... 404 (Not Found)
You need to configure the "assets" in pkg configuration for static assets.
"assets": [ "assets/**/*", "images/**/*" ]
Check this configuration here. github.com/vercel/pkg#config
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I packaged my node.js app with pkg. my app consists static folder which contains images. but with the packaged app, I can not access my images. with out packaging the images are accessible.
it gives me this message:
GET localhost/owners/1634464527932imag... 404 (Not Found)
You need to configure the "assets" in pkg configuration for static assets.
Check this configuration here. github.com/vercel/pkg#config