Fixed! Just needed to manually specify
output_dir: .next/server/pages/
for the static site in app.yaml.