eab61f3c65
Server Rendering: * This adds an additional ContentSource to next-dev which takes care of handling the `pages` directory. * The content source creates a ServerRenderedAsset from each file in the `src/pages` or `pages` directory and a AssetGraphContentSource for that. * The ServerRenderedAsset will reference an underlying asset for the node.js context which will be passed to the node executable for rendering. It uses a WrapperAsset to add additional communication logic. Client Transition: * When annotating `import`s with `transition: "next-client"` the NextClientTransition is used * This transition changes the environment to browser * It wraps the referenced asset with a next-hyrdation wrapper asset * It leaves a little module in the previous context which exports a list of URLs for chunks needed. * The NextClientTransition takes a client_chunking_context as argument which specifies how the client code is chunked.
5 lines
82 B
Rust
5 lines
82 B
Rust
use turbo_tasks_build::generate_register;
|
|
|
|
fn main() {
|
|
generate_register();
|
|
}
|