Skip to content

Commit 69a09a7

Browse files
committed
misc updates
1 parent c4c33a0 commit 69a09a7

File tree

9 files changed

+6
-12
lines changed

9 files changed

+6
-12
lines changed

packages/cloudflare/src/cli/commands/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { WithWranglerArgs } from "./setup-cli.js";
55
import { setupCLI, withWranglerOptions, withWranglerPassthroughArgs } from "./setup-cli.js";
66

77
/**
8-
* Implementation of the `opennextjs-clouflare build` command.
8+
* Implementation of the `opennextjs-cloudflare build` command.
99
*
1010
* @param args
1111
*/

packages/cloudflare/src/cli/commands/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { setupCLI, withWranglerPassthroughArgs } from "./setup-cli.js";
99
import { getDeploymentMapping } from "./skew-protection.js";
1010

1111
/**
12-
* Implementation of the `opennextjs-clouflare deploy` command.
12+
* Implementation of the `opennextjs-cloudflare deploy` command.
1313
*
1414
* @param args
1515
*/

packages/cloudflare/src/cli/commands/populate-cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ export async function populateCache(
276276
}
277277

278278
/**
279-
* Implementation of the `opennextjs-clouflare populateCache` command.
279+
* Implementation of the `opennextjs-cloudflare populateCache` command.
280280
*
281281
* @param args
282282
*/

packages/cloudflare/src/cli/commands/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { WithWranglerArgs } from "./setup-cli.js";
66
import { setupCLI, withWranglerPassthroughArgs } from "./setup-cli.js";
77

88
/**
9-
* Implementation of the `opennextjs-clouflare preview` command.
9+
* Implementation of the `opennextjs-cloudflare preview` command.
1010
*
1111
* @param args
1212
*/

packages/cloudflare/src/cli/commands/setup-cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type Options = {
3434
* - Initialises the OpenNext options.
3535
* - Reads the Wrangler config.
3636
*
37-
* @param command
37+
* @param command The CLI command being executed (`build`, `deploy`, ...)
3838
* @param shouldCompileConfig
3939
* @param args
4040
* @returns CLI options, OpenNext config, and Wrangler config.

packages/cloudflare/src/cli/commands/upload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { setupCLI, withWranglerPassthroughArgs } from "./setup-cli.js";
99
import { getDeploymentMapping } from "./skew-protection.js";
1010

1111
/**
12-
* Implementation of the `opennextjs-clouflare upload` command.
12+
* Implementation of the `opennextjs-cloudflare upload` command.
1313
*
1414
* @param args
1515
*/

packages/cloudflare/src/cli/templates/images.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,10 @@ export function detectContentType(buffer: Uint8Array) {
218218
}
219219
}
220220

221-
/* eslint-disable no-var */
222221
declare global {
223222
var __IMAGES_REMOTE_PATTERNS__: RemotePattern[];
224223
var __IMAGES_LOCAL_PATTERNS__: LocalPattern[];
225224
var __IMAGES_ALLOW_SVG__: boolean;
226225
var __IMAGES_CONTENT_SECURITY_POLICY__: string;
227226
var __IMAGES_CONTENT_DISPOSITION__: string;
228227
}
229-
/* eslint-enable no-var */

packages/cloudflare/src/cli/templates/init.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ function populateProcessEnv(url: URL, env: CloudflareEnv) {
146146
}
147147
}
148148

149-
/* eslint-disable no-var */
150149
declare global {
151150
// Build timestamp
152151
var __BUILD_TIMESTAMP_MS__: number;
@@ -157,4 +156,3 @@ declare global {
157156
// Deployment ID
158157
var __DEPLOYMENT_ID__: string;
159158
}
160-
/* eslint-enable no-var */

packages/cloudflare/src/cli/templates/skew-protection.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ export function maybeGetSkewProtectionResponse(request: Request): Promise<Respon
6666
}
6767
}
6868

69-
/* eslint-disable no-var */
7069
declare global {
7170
// Replaced at build time with the value from Open Next config
7271
var __SKEW_PROTECTION_ENABLED__: boolean;
7372
}
74-
/* eslint-enable no-var */

0 commit comments

Comments
 (0)