Replies: 3 comments
-
Prerender works for me - deploying with CF workers. Make sure you review this page in the CF Wrangler docs. My prerendered routes on builds were getting messed up until I realized the CF vite plugin for RRv7 doesn't like when you explicitly declare directory, run_workers_first, and binding in assets in your wrangler.toml/jsonc. |
Beta Was this translation helpful? Give feedback.
-
@michaeljblum gave me false hope there. as of: isn't building index.html cloudflare's triaged the issue to their backlog for reference: |
Beta Was this translation helpful? Give feedback.
-
@michaeljblum to be clear with extra coaxing out of the older template, vite5 and a really hacked vite.config.ts you can get prerender to work but i lose protcol imports with cloudflare and a bunch of other things when i do that. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
with the transition to the cloudflare vite plugin for the templates, partial prerender no longer works.
Its not a priority for the cloudflare team so i wondered if there's something about this feature.
Since its a build feature i'm wondering if it falls more in remix's side then cf's.
prerender is one of remix's core strengths for me when paired with static assets in cf.
PreRender works without the cloudflare vite plugin it seems like cloudflare is blocking the build or ignoring the flag.
Beta Was this translation helpful? Give feedback.
All reactions