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
@@ -65,6 +65,13 @@ impl AssetManifest {
|
||||
self.assets.get(path)
|
||||
}
|
||||
|
||||
/// Get the first asset that matches the given source path
|
||||
pub fn get_first_asset_for_source(&self, path: &Path) -> Option<&BundledAsset> {
|
||||
self.assets
|
||||
.get(path)
|
||||
.and_then(|assets| assets.iter().next())
|
||||
}
|
||||
|
||||
/// Check if the manifest contains a specific asset
|
||||
pub fn contains(&self, asset: &BundledAsset) -> bool {
|
||||
self.assets
|
||||
|
||||
Reference in new issue
Block a user