Skip to content

Commit 7d1f2c2

Browse files
committed
misc updates
1 parent c4c33a0 commit 7d1f2c2

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,12 @@ export function detectContentType(buffer: Uint8Array) {
218218
}
219219
}
220220

221-
/* eslint-disable no-var */
221+
222222
declare global {
223223
var __IMAGES_REMOTE_PATTERNS__: RemotePattern[];
224224
var __IMAGES_LOCAL_PATTERNS__: LocalPattern[];
225225
var __IMAGES_ALLOW_SVG__: boolean;
226226
var __IMAGES_CONTENT_SECURITY_POLICY__: string;
227227
var __IMAGES_CONTENT_DISPOSITION__: string;
228228
}
229-
/* eslint-enable no-var */
229+

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

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

149-
/* eslint-disable no-var */
149+
150150
declare global {
151151
// Build timestamp
152152
var __BUILD_TIMESTAMP_MS__: number;
@@ -157,4 +157,4 @@ declare global {
157157
// Deployment ID
158158
var __DEPLOYMENT_ID__: string;
159159
}
160-
/* eslint-enable no-var */
160+

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

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

69-
/* eslint-disable no-var */
69+
7070
declare global {
7171
// Replaced at build time with the value from Open Next config
7272
var __SKEW_PROTECTION_ENABLED__: boolean;
7373
}
74-
/* eslint-enable no-var */
74+

0 commit comments

Comments
 (0)