Restore SSG serve logic (#4111)
* Build ssg routes when both the client and server builds are finished * Fix default server fn encoding * fix tokio console * fix ssg * add prerendering message * render under the same environment variables as normal * fix check * use should_bundle_to_asset * enable ssg playwright test * fix clippy
This commit is contained in:
1 parent
f610c6b8c1
commit
fdd77d79c1
17 files changed
+357
-236
No files matched your search
@@ -212,6 +212,9 @@ pub fn server(args: proc_macro::TokenStream, body: TokenStream) -> TokenStream {
|
||||
};
|
||||
|
||||
parsed
|
||||
.default_protocol(Some(
|
||||
parse_quote!(server_fn::Http<server_fn::codec::Json, server_fn::codec::Json>),
|
||||
))
|
||||
.default_input_encoding(Some(parse_quote!(server_fn::codec::Json)))
|
||||
.default_output_encoding(Some(parse_quote!(server_fn::codec::Json)))
|
||||
.default_server_fn_path(Some(parse_quote!(server_fn)))
|
||||
|
||||
Reference in new issue
Block a user