alchemy 0.11.2 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,8 +20,10 @@ export interface ViteSiteProps<B extends Bindings> {
|
|
|
20
20
|
main?: string;
|
|
21
21
|
/**
|
|
22
22
|
* The directory containing your static assets
|
|
23
|
+
*
|
|
24
|
+
* @default "./dist"
|
|
23
25
|
*/
|
|
24
|
-
assets
|
|
26
|
+
assets?: string;
|
|
25
27
|
/**
|
|
26
28
|
* The bindings to pass to the worker
|
|
27
29
|
*/
|
package/package.json
CHANGED
|
@@ -26,8 +26,10 @@ export interface ViteSiteProps<B extends Bindings> {
|
|
|
26
26
|
main?: string;
|
|
27
27
|
/**
|
|
28
28
|
* The directory containing your static assets
|
|
29
|
+
*
|
|
30
|
+
* @default "./dist"
|
|
29
31
|
*/
|
|
30
|
-
assets
|
|
32
|
+
assets?: string;
|
|
31
33
|
/**
|
|
32
34
|
* The bindings to pass to the worker
|
|
33
35
|
*/
|
|
@@ -80,7 +82,7 @@ export async function ViteSite<B extends Bindings>(
|
|
|
80
82
|
});
|
|
81
83
|
|
|
82
84
|
const staticAssets = await Assets("assets", {
|
|
83
|
-
path: "./dist",
|
|
85
|
+
path: props.assets ?? "./dist",
|
|
84
86
|
});
|
|
85
87
|
|
|
86
88
|
const worker = await Worker("worker", {
|