Please check astro.config.mjs file. Since your website is working fine locally, make sure base path is configured properly for cloud env.
export default defineConfig({
...
server: {
port: 3000,
},
base: process.env.NODE_ENV === 'production' ? '/' : '/',
})