-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: account for server-emitted assets when prerendering (#9349)
fixes #9146
- Loading branch information
1 parent
b575287
commit daad7e4
Showing
5 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/kit': patch | ||
--- | ||
|
||
fix: account for server-emitted assets when prerenering |
7 changes: 7 additions & 0 deletions
7
...ages/adapter-static/test/apps/prerendered/src/routes/server-emitted-asset/+page.server.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import src from './image.jpg'; | ||
|
||
export function load() { | ||
return { | ||
src | ||
}; | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/adapter-static/test/apps/prerendered/src/routes/server-emitted-asset/+page.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<script> | ||
export let data; | ||
</script> | ||
|
||
<img src={data.src} alt="birb" /> |
Binary file added
BIN
+345 KB
.../adapter-static/test/apps/prerendered/src/routes/server-emitted-asset/image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters