Removed autopublish and set up a basic publication in main.js.