faustjs icon indicating copy to clipboard operation
faustjs copied to clipboard

App Router with Blocks

Open Bowriverstudio opened this issue 1 year ago • 3 comments

Is it possible to use the App Router with Blocks?

I have tried but so far it has not worked well for me

Bowriverstudio avatar Jun 01 '24 23:06 Bowriverstudio

Hey @Bowriverstudio thank you for the suggestion. It's true that currently there are some issues using App Router with Blocks.

There is an RFC that needs to be ironed out a bit that proposes converting all the blocks into RSC components, but it will take some effort to implement:

https://github.com/wpengine/faustjs/issues/1619

theodesp avatar Jun 04 '24 08:06 theodesp

Any news about this feature?

eurusik avatar May 24 '25 17:05 eurusik

@eurusik

At this current time Faust doesn't support Aoo Router and has since been deprecated. See - https://github.com/wpengine/faustjs/tree/archive-experimental-app-router/packages/experimental-app-router#faustwpexperimental-app-router

This package has been deprecated due to lack of Apollo support for React Server Components and Next's App Router. The team is working on [tooling to replace Faust](https://github.com/wpengine/hwptoolkit) and this will include App Router support. You may continue to use this package though it will not receive any further bug fixes or security patches. If you need bug fixes or security updates we'd recommend copying the source code of this package directly into your project for use or use a tool such as [patch-package](https://www.npmjs.com/package/patch-package).

However if you are looking for examples outside of Faust with the app router and blocks, we did some experimenting in an example here - https://github.com/wpengine/hwptoolkit/tree/main/examples/next/render-blocks-pages-router

colinmurphy avatar May 26 '25 08:05 colinmurphy