Fetch files from outside of SvelteKit project directory

Viewed 53

I'm fetching data, including media file links, from a Django API. Project structure as follows:

-backend (Django)
   -core
      -media
-frontend (SvelteKit)
   -src
   -lib
   -node_modules

Both apps are running on different ports and I can't figure out how to access the files inside of backend/core/media from SvelteKit after fetching the link. The media link I'm receiving by my API would be something like this: /media/images/user1/image.jpg

0 Answers
Related