You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quick question. I have a folder inside my working directory that stores a .pem file to sign a token. This is stored in /api/keys/apple/key.pem. I reference this file in a method like so:
This works great in development, but when I run nexus build the keys folder is not added to the output. Which I assume means it was tree-shaken out of the build since I'm not using an import statement to load the .pem. Is there a way to force a folder to be added to my build folder when running nexus build?
EDIT:
Is the preferred method to define a postbuild script to move the file over?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Quick question. I have a folder inside my working directory that stores a
.pem
file to sign a token. This is stored in/api/keys/apple/key.pem
. I reference this file in a method like so:This works great in development, but when I run
nexus build
thekeys
folder is not added to the output. Which I assume means it was tree-shaken out of the build since I'm not using animport
statement to load the.pem
. Is there a way to force a folder to be added to mybuild
folder when runningnexus build
?EDIT:
Is the preferred method to define a
postbuild
script to move the file over?Beta Was this translation helpful? Give feedback.
All reactions