Mount path for volume using Svelte.

So i have large media files in my project. Im trying to bypass the 'file too large' deploy errors.

so i have used a FileBrowser service and uploaded the files there and mounted the volume to my service.

Im using svelte and referencing my files from /static

what path should i mount the filebrowser volume to in my project, /app/static ?

6 Replies

a year ago

exactly right


a year ago

assuming you're building with nixpacks anyway


de3ae3a9-cfe6-4f23-99ef-30770b485488


yes


ive tried to mount and I cannot get these files to load


a year ago

That's strange, my thinking is that you're perhaps not using relative paths? You could try using the environment variable RAILWAY_VOLUME_MOUNT_PATH which would point directly to your volume's mount path, and then if that doesn't work either then it's definitely something funny in your code


Loading...