#Is it possible to read files outside of priv?

1 messages · Page 1 of 1 (latest)

fiery vine
#

I'm currently using Wisp and i'd like to colocate my html files next to each other in src/pages/about/index.html, handlers.gleam. This works locally but breaks during the build. To work around this i'm using rsync to copy all non gleam files to priv before the deploy but i'm wondering if there's a supported way to do this that i'm missing?

pastel pendant
#

You can read files from anywhere but priv is the recommended place to put files your application depends on and the build tool will include it with the package when publishing it or building it for production, etc