Nyll
Nyll
Explore posts from servers
RRailway
Created by Nyll on 2/15/2024 in #✋|help
Volume initializing is very confusing
note: if someone needs to implement something like this for nuxt I'm working on a package to simplify all of this: https://github.com/nyllre/nuxt-nitro-storage
21 replies
RRailway
Created by Nyll on 2/15/2024 in #✋|help
Volume initializing is very confusing
the reason was for allowing the users to have access to the files by entering this url: https://example.com/userFiles/file.png but then I made my own file delivery method using this:
// Stream the file data efficiently
const stream = fs.createReadStream(filePath)
stream.pipe(event.node.res)
// Stream the file data efficiently
const stream = fs.createReadStream(filePath)
stream.pipe(event.node.res)
21 replies
RRailway
Created by Nyll on 2/15/2024 in #✋|help
Volume initializing is very confusing
I have solved the issue, storing the data inside folders that are supposed to be inside the project doesn't work. When I stored the data inside the /data/* directory it persisted. I'm not sure if that's how it's supposed to be or if you can mount in the project but this is my experiment.
21 replies
RRailway
Created by Nyll on 2/15/2024 in #✋|help
Volume initializing is very confusing
update on the solution, each time the project redeploys the files disappear again.
21 replies
RRailway
Created by Nyll on 2/15/2024 in #✋|help
Volume initializing is very confusing
I will test it now
21 replies
RRailway
Created by Nyll on 2/15/2024 in #✋|help
Volume initializing is very confusing
No description
21 replies
RRailway
Created by Nyll on 2/15/2024 in #✋|help
Volume initializing is very confusing
yes, I want the railway deployment persist the files inside this folder so when a new update comes in the files in the folder doesn't get deleted
21 replies
RRailway
Created by Nyll on 2/15/2024 in #✋|help
Volume initializing is very confusing
No description
21 replies
RRailway
Created by Nyll on 2/15/2024 in #✋|help
Volume initializing is very confusing
what sort of information that I could provide for a better idea of the project?
21 replies
RRailway
Created by Nyll on 2/15/2024 in #✋|help
Volume initializing is very confusing
unfortunately this repo is private for a client but the most important parts of it is basically this /projectName |- /public |- /userFiles
21 replies