Accessing static files
I need my app to access a collection of static JSON Schema files, but it doesn't seem straightforward to do so. The files are currently positioned in the server/utils/schemas directory, but this directory isn't included in .wasp/out/sdk/wasp/dist/ext-src. It is included in .wasp/out/sdk/ext-src, which is where I'm currently having to reference them from, but I suspect this location won't be valid for the deployed application.
As the
What's the accepted best practise to accomplish this?
As the
__directory and __file magic variables aren't available, here's my current, hacky, implementation:What's the accepted best practise to accomplish this?