Accessing static from endpoint #4355
Unanswered
MauritsWilke
asked this question in
Q&A
Replies: 2 comments 3 replies
|
It should be possible to drop the domain part completely. If you just use |
3 replies
|
To be clear, the issue here is making a file (json, image, ...) available both in the assets so users can do The issue is though that while in development you could do ```js This does feel wrong though, there must a better way. An alternative approach would be to not place the file in static but place it in 'lib/data' so we can do ```js |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi all!
I have an endpoint that uses images from the
staticfolder and was wondering if there is a better practice for this.My current solution for the path of the image is as follows:
Is there a better way of doing this? any built-in features I am overlooking?
Thanks in advance!
All reactions