Paths are not relative after build.
Describe the feature
We are using unstorage with the filesystem driver. In our config we specify
storage: {
'.data:cache': {
driver: 'fs',
base: './.data/cache',
}
}
After our project is built the base path is absolute and points to the to the folder system that the project was built on. Instead of being relative to the nitro instance as one would expect. The folder paths are completely different on our production server and gitlab runner. One possible solution to this would be to use environment variables in our config to specify the absolute path but this feels a bit off. Thoughts? Solutions?
We are building in one environment and transferring the files so a relative path would make a lot more sense for us.
Additional information
- [ ] Would you be willing to help implement this feature?
Thanks for the report ~~i will check it. BTW data is mounted by default and I expect it to be relative have you tried it?~~