@ruvyxa/adapter-cloudflare 1.0.14 → 1.0.16

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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @ruvyxa/adapter-cloudflare
2
2
 
3
- Cloudflare edge deployment adapter metadata for Ruvyxa production builds.
3
+ Cloudflare Pages static deployment adapter for Ruvyxa production builds.
4
4
 
5
5
  ## Install
6
6
 
@@ -19,7 +19,7 @@ export default config({
19
19
  })
20
20
  ```
21
21
 
22
- ## Output Metadata
22
+ ## Deployment Artifact
23
23
 
24
24
  ```json
25
25
  {
@@ -30,8 +30,12 @@ export default config({
30
30
  "assetsDir": ".ruvyxa/assets",
31
31
  "clientDir": ".ruvyxa/client",
32
32
  "chunkManifest": ".ruvyxa/client/chunk-manifest.json",
33
- "configFiles": ["wrangler.toml"]
33
+ "configFiles": ["wrangler.jsonc"]
34
34
  }
35
35
  ```
36
36
 
37
- Use this adapter for Cloudflare Workers and Pages-style edge deployments.
37
+ `ruvyxa build` creates `.ruvyxa/deploy/cloudflare/` with `assets/` and `wrangler.jsonc`. Deploy that
38
+ directory with Wrangler/Cloudflare Pages.
39
+
40
+ This adapter safely supports static SSG/CSR output only. It rejects API, SSR, ISR, and PPR routes
41
+ with `RUV2202`; a Workers request handler is not generated by the current Rust server.
package/dist/index.d.ts CHANGED
@@ -1,16 +1,16 @@
1
1
  import type { Adapter } from '@ruvyxa/core';
2
2
  /**
3
- * Options for the Cloudflare Workers adapter.
3
+ * Options for the Cloudflare static deployment adapter.
4
4
  */
5
5
  export interface CloudflareAdapterOptions {
6
6
  /** Custom worker entry point path. Defaults to `${outDir}/server/app`. */
7
7
  workerEntry?: string;
8
8
  }
9
9
  /**
10
- * Create a Cloudflare Workers deployment adapter for Ruvyxa.
10
+ * Create a Cloudflare Pages static deployment adapter for Ruvyxa.
11
11
  *
12
- * Produces an edge-compatible worker bundle and static assets ready for
13
- * deployment via `wrangler`. Generates a `wrangler.toml` config reference.
12
+ * Produces static assets ready for deployment via `wrangler` and generates a
13
+ * `wrangler.jsonc` config reference. Dynamic routes are rejected at build time.
14
14
  *
15
15
  * @example
16
16
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAA+B,MAAM,cAAc,CAAA;AAGxE;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,0EAA0E;IAC1E,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,wBAA6B,GAAG,OAAO,CA2BjF;eAEc,iBAAiB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAA+B,MAAM,cAAc,CAAA;AAGxE;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,0EAA0E;IAC1E,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,wBAA6B,GAAG,OAAO,CAmCjF;eAEc,iBAAiB"}
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { clientBuildOutput, validateBuildContext } from '@ruvyxa/core';
2
2
  /**
3
- * Create a Cloudflare Workers deployment adapter for Ruvyxa.
3
+ * Create a Cloudflare Pages static deployment adapter for Ruvyxa.
4
4
  *
5
- * Produces an edge-compatible worker bundle and static assets ready for
6
- * deployment via `wrangler`. Generates a `wrangler.toml` config reference.
5
+ * Produces static assets ready for deployment via `wrangler` and generates a
6
+ * `wrangler.jsonc` config reference. Dynamic routes are rejected at build time.
7
7
  *
8
8
  * @example
9
9
  * ```ts
@@ -34,7 +34,15 @@ export function cloudflareAdapter(options = {}) {
34
34
  entry: options.workerEntry ?? `${ctx.outDir}/server/app`,
35
35
  assetsDir: `${ctx.outDir}/assets`,
36
36
  ...clientBuildOutput(ctx),
37
- configFiles: ['wrangler.toml'],
37
+ configFiles: ['wrangler.jsonc'],
38
+ artifacts: [
39
+ { kind: 'static-site', path: 'deploy/cloudflare/assets' },
40
+ {
41
+ kind: 'file',
42
+ path: 'deploy/cloudflare/wrangler.jsonc',
43
+ contents: '{\n "name": "ruvyxa-app",\n "assets": { "directory": "./assets" }\n}\n',
44
+ },
45
+ ],
38
46
  };
39
47
  },
40
48
  };
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAUtE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,iBAAiB,CAAC,OAAO,GAA6B,EAAE;IACtE,IAAI,OAAO,CAAC,WAAW,KAAK,SAAS,IAAI,OAAO,OAAO,CAAC,WAAW,KAAK,QAAQ,EAAE,CAAC;QACjF,MAAM,IAAI,KAAK,CACb,oEAAoE,OAAO,OAAO,CAAC,WAAW,EAAE,CACjG,CAAA;IACH,CAAC;IAED,IAAI,OAAO,CAAC,WAAW,KAAK,SAAS,IAAI,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QAC3E,MAAM,IAAI,KAAK,CAAC,wEAAwE,CAAC,CAAA;IAC3F,CAAC;IAED,OAAO;QACL,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,MAAM;QACd,KAAK,CAAC,GAAiB;YACrB,oBAAoB,CAAC,GAAG,EAAE,mBAAmB,CAAC,CAAA;YAC9C,OAAO;gBACL,IAAI,EAAE,YAAY;gBAClB,MAAM,EAAE,MAAM;gBACd,QAAQ,EAAE,YAAY;gBACtB,KAAK,EAAE,OAAO,CAAC,WAAW,IAAI,GAAG,GAAG,CAAC,MAAM,aA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EAAE,aAAa,EAAE,IAAI,EAAE,0BAA0B,EAAE;oBACzD;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,kCAAkC;wBACxC,QAAQ,EAAE,0EAA0E;qBACrF;iBACF;aACF,CAAA;QACH,CAAC;KACF,CAAA;AACH,CAAC;AAED,eAAe,iBAAiB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruvyxa/adapter-cloudflare",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "Shape Ruvyxa builds for Cloudflare edge targets with typed worker and asset output metadata.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -38,7 +38,7 @@
38
38
  }
39
39
  },
40
40
  "dependencies": {
41
- "@ruvyxa/core": "^1.0.14"
41
+ "@ruvyxa/core": "^1.0.16"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "tsc -p tsconfig.json",