After deploy, any custom archives resulted in 404 and I had to manually had to update permalinks.
I ended up adding this to trellis/roles/deploy/tasks/finalize_after.yml
- name: Update WP permalinks
command: wp rewrite flush
args:
chdir: "{{ deploy_helper.new_release_path }}"