static/* assets on pages stops working and doesn't work until I login to CF dashboard > re-deploy the project. Any suggestion will be really apprecaited.

pages.dev domain into the Pages Worker, so the hash will still match.




wrangler pages deploy <directory>node:buffer, and Astro recommends using the ssr: { external: ["node:buffer"] -- cool. But is the solution if something imports fs to seriously reach out to the author? Is there no better solution? Why can't I just build it with the polyfills in there?node:fs/whatever stuff.node:fs and build, but cloudflare can't?const cacheTtlByStatus = {
'200-299': 86400,
404: 5,
'500-599': 0,
};
app.get(`${WEBSITE_URL}/static/*`, async (ctx) => {
return await ctx.env.ASSETS.fetch(ctx.req.raw, {
cf: {
cacheTtlByStatus: cacheTtlByStatus,
},
});
});node:bufferssr: { external: ["node:buffer"]node:fs/whatevernode:fs