Skip to content

revalidate doesn't refresh server chunks without server restartΒ #4407

@rohit1576

Description

@rohit1576

In the example given here - https://github.com/module-federation/module-federation-examples/tree/master/nextjs-ssr

The latest server chunk does not load in host app, if some changes are done in remote app. The same issue is happening both on dev and prod build.

Steps to reproduce:

  1. Run pnpm dev, and hit http://localhost:3000/
  2. Make changes in checkout/components/exposedTitle.js, on string present at line 14.
  3. Refreshing the page will load the latest client chunk with updated content, but on server, still the old content would load. (You can verify this by disabling javascript in browser)
    Error:
Image

Even tried adding content hash in the output.filename in webpack config as mentioned here - https://github.com/module-federation/core/tree/main/packages/node#utilities, but no luck.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions