@astrojs/cloudflare 13.0.0-beta.4 → 13.0.0-beta.5
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/entrypoints/preview.js +1 -1
- package/dist/index.d.ts +0 -20
- package/dist/index.js +0 -13
- package/package.json +5 -5
|
@@ -83,7 +83,7 @@ function serverStart({
|
|
|
83
83
|
host,
|
|
84
84
|
base
|
|
85
85
|
}) {
|
|
86
|
-
const version = "13.0.0-beta.
|
|
86
|
+
const version = "13.0.0-beta.5";
|
|
87
87
|
const localPrefix = `${colors.dim("\u2503")} Local `;
|
|
88
88
|
const networkPrefix = `${colors.dim("\u2503")} Network `;
|
|
89
89
|
const emptyPrefix = " ".repeat(11);
|
package/dist/index.d.ts
CHANGED
|
@@ -56,25 +56,5 @@ export type Options = {
|
|
|
56
56
|
* See https://developers.cloudflare.com/images/transform-images/bindings/ for more details.
|
|
57
57
|
*/
|
|
58
58
|
imagesBindingName?: string;
|
|
59
|
-
/**
|
|
60
|
-
* This configuration option allows you to specify a custom entryPoint for your Cloudflare Worker.
|
|
61
|
-
* The entry point is the file that will be executed when your Worker is invoked.
|
|
62
|
-
* By default, this is set to `@astrojs/cloudflare/entrypoints/server.js` and `['default']`.
|
|
63
|
-
* @docs https://docs.astro.build/en/guides/integrations-guide/cloudflare/#workerEntryPoint
|
|
64
|
-
*/
|
|
65
|
-
workerEntryPoint?: {
|
|
66
|
-
/**
|
|
67
|
-
* The path to the entry file. This should be a relative path from the root of your Astro project.
|
|
68
|
-
* @example`'src/worker.ts'`
|
|
69
|
-
* @docs https://docs.astro.build/en/guides/integrations-guide/cloudflare/#workerentrypointpath
|
|
70
|
-
*/
|
|
71
|
-
path: string | URL;
|
|
72
|
-
/**
|
|
73
|
-
* Additional named exports to use for the entry file. Astro always includes the default export (`['default']`). If you need to have other top level named exports use this option.
|
|
74
|
-
* @example ['MyDurableObject', 'namedExport']
|
|
75
|
-
* @docs https://docs.astro.build/en/guides/integrations-guide/cloudflare/#workerentrypointnamedexports
|
|
76
|
-
*/
|
|
77
|
-
namedExports?: string[];
|
|
78
|
-
};
|
|
79
59
|
};
|
|
80
60
|
export default function createIntegration(args?: Options): AstroIntegration;
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { createReadStream, existsSync, readFileSync } from "node:fs";
|
|
2
2
|
import { appendFile, stat } from "node:fs/promises";
|
|
3
|
-
import { createRequire } from "node:module";
|
|
4
3
|
import { createInterface } from "node:readline/promises";
|
|
5
|
-
import { pathToFileURL } from "node:url";
|
|
6
4
|
import { removeLeadingForwardSlash } from "@astrojs/internal-helpers/path";
|
|
7
5
|
import { createRedirectsFromAstroRoutes, printAsRedirects } from "@astrojs/underscore-redirects";
|
|
8
6
|
import { cloudflare as cfVitePlugin } from "@cloudflare/vite-plugin";
|
|
@@ -162,19 +160,8 @@ function createIntegration(args) {
|
|
|
162
160
|
filename: "cloudflare.d.ts",
|
|
163
161
|
content: '/// <reference types="@astrojs/cloudflare/types.d.ts" />'
|
|
164
162
|
});
|
|
165
|
-
let customWorkerEntryPoint;
|
|
166
|
-
if (args?.workerEntryPoint && typeof args.workerEntryPoint.path === "string") {
|
|
167
|
-
const require2 = createRequire(config.root);
|
|
168
|
-
try {
|
|
169
|
-
customWorkerEntryPoint = pathToFileURL(require2.resolve(args.workerEntryPoint.path));
|
|
170
|
-
} catch {
|
|
171
|
-
customWorkerEntryPoint = new URL(args.workerEntryPoint.path, config.root);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
163
|
setAdapter({
|
|
175
164
|
name: "@astrojs/cloudflare",
|
|
176
|
-
serverEntrypoint: customWorkerEntryPoint ?? "@astrojs/cloudflare/entrypoints/server.js",
|
|
177
|
-
exports: [.../* @__PURE__ */ new Set(["default", ...args?.workerEntryPoint?.namedExports ?? []])],
|
|
178
165
|
adapterFeatures: {
|
|
179
166
|
edgeMiddleware: false,
|
|
180
167
|
buildOutput: "server"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/cloudflare",
|
|
3
3
|
"description": "Deploy your site to Cloudflare Workers/Pages",
|
|
4
|
-
"version": "13.0.0-beta.
|
|
4
|
+
"version": "13.0.0-beta.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"author": "withastro",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"wrangler": "^4.61.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@cloudflare/workers-types": "^4.
|
|
52
|
-
"cheerio": "1.
|
|
51
|
+
"@cloudflare/workers-types": "^4.20260131.0",
|
|
52
|
+
"cheerio": "1.2.0",
|
|
53
53
|
"devalue": "^5.6.2",
|
|
54
|
-
"rollup": "^4.
|
|
55
|
-
"astro": "6.0.0-beta.
|
|
54
|
+
"rollup": "^4.57.1",
|
|
55
|
+
"astro": "6.0.0-beta.9",
|
|
56
56
|
"astro-scripts": "0.0.14"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|