How to import secret files and typescript path resolution during build

so i am using render for deployment. i defined a secret file at environment as per [secret-file hosted at ImgBB — ImgBB]

(1) Right now, when i push to render, it is unable to find the file, even though i defined the path as per render’s website. I guess there is something wrong with my import path, since running npm run build and start locally works

What my import path is right now: typescript-application hosted at ImgBB — ImgBB

(2) how do i somehow dynamically resolve the path when transpiling typescript code? my local path to the .json is …/styleswap-firebase.json, how would i go about changing the transpiled code’s import path into the render path?

Thank you!


I’ve replied to the ticket you also opened. Let’s keep the conversation in one place (on the ticket). Then you can update this post when we get to the solution.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.