I am currently developing a dynamic pipeline using the Atlassian Forge product. I am able to get a simple "hello world" application working. I plan on using configuration files (such as a YAML) file to be part of the logic.
I have noticed that when I do a forge deploy the configuration files are not deployed as part of the process and hence I get the error:
Error: ENOENT: no such file or directory, open './build-files/config.yml' at Object.openSync
My question- how to I get forge deploy to bundle my configuration files as part of the deployment so that I can access them in my code?
I found the answer to my question.
You need to include the files in your manifest under app -> package -> extraFiles
https://developer.atlassian.com/platform/forge/manifest-reference/#package
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.