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: string;
26
+ assets?: string;
25
27
  /**
26
28
  * The bindings to pass to the worker
27
29
  */
@@ -29,7 +29,7 @@ export async function ViteSite(id, props) {
29
29
  command: props.command,
30
30
  });
31
31
  const staticAssets = await Assets("assets", {
32
- path: "./dist",
32
+ path: props.assets ?? "./dist",
33
33
  });
34
34
  const worker = await Worker("worker", {
35
35
  name: props.name ?? id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alchemy",
3
- "version": "0.11.2",
3
+ "version": "0.11.3",
4
4
  "type": "module",
5
5
  "module": "./lib/index.js",
6
6
  "scripts": {
@@ -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: string;
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", {