Good afternoon, I have generated an Outlook add in with Yeoman, I am about to try to upload it to a Heroku environment, but I don't know what guidelines to follow to upload it well, I have uploaded nodejs projects to heroku before, but changing the port and some script works, I don't know what documentation I should follow.
Best regards
CodePudding user response:
You deal with a typical web application. There is a command in the scripts section of the package.json
file if you build the add-in based on the webpack bundler:
"build": "webpack --mode production",
So, if you run it in the following way:
npm run build
You will get all the files configured in the dist
folder. So, you just need to upload them to any web server.
In the webpack.config.js
you need to configure the production URL to build the add-in correctly and ready for a specific web server. There is no need to change the ports manually. However, you may check the manifest file.