@astrale-os/adapter-cloudflare 0.5.0-beta.27 → 0.5.0-beta.29
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/dist/adapter.js +6 -1
- package/package.json +2 -2
package/dist/adapter.js
CHANGED
|
@@ -48,7 +48,12 @@ export function cloudflareWithDependencies(environments, dependencies) {
|
|
|
48
48
|
projectDir: context.projectDir,
|
|
49
49
|
});
|
|
50
50
|
const name = workerName(parameters, context.artifact.build.schema.compiled.root.origin);
|
|
51
|
-
|
|
51
|
+
// A local workerd cannot reach the default deployed router Worker through a service
|
|
52
|
+
// binding. Keep it for remote isolates and explicit multi-Worker development; ordinary
|
|
53
|
+
// local execution falls back to the admitted fetch path when ROUTER is absent.
|
|
54
|
+
const router = parameters.remote === true || parameters.router !== undefined
|
|
55
|
+
? resolveRouter(parameters.router)
|
|
56
|
+
: undefined;
|
|
52
57
|
const configPath = join(directory, 'wrangler.watch.jsonc');
|
|
53
58
|
await writeFile(configPath, generateWranglerConfig({
|
|
54
59
|
workerName: name,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-os/adapter-cloudflare",
|
|
3
|
-
"version": "0.5.0-beta.
|
|
3
|
+
"version": "0.5.0-beta.29",
|
|
4
4
|
"description": "Deploy an Astrale application through Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adapter",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"hono": "^4.6.20",
|
|
46
46
|
"jose": "^6.1.3",
|
|
47
47
|
"wrangler": "4.123.0",
|
|
48
|
-
"@astrale-os/sdk": "^0.5.0-beta.
|
|
48
|
+
"@astrale-os/sdk": "^0.5.0-beta.26"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@astrale-os/ox": ">=0.1.0 <1.0.0",
|