Skip to content

Commit 92a69e6

Browse files
fixups from PR review
1 parent 8b210e6 commit 92a69e6

File tree

9 files changed

+7909
-7082
lines changed

9 files changed

+7909
-7082
lines changed

create-cloudflare/next/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@ next-env.d.ts
4040

4141
# wrangler files
4242
.wrangler
43-
!.dev.vars*
43+
.dev.vars*
44+
!.dev.vars.example
4445
!.env.example

create-cloudflare/next/.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"files.associations": {
33
"wrangler.json": "jsonc"
44
}
5-
}
5+
}

create-cloudflare/next/cloudflare-env.d.ts

Lines changed: 7855 additions & 7025 deletions
Large diffs are not rendered by default.

create-cloudflare/next/eslint.config.mjs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ const __filename = fileURLToPath(import.meta.url);
66
const __dirname = dirname(__filename);
77

88
const compat = new FlatCompat({
9-
baseDirectory: __dirname,
9+
baseDirectory: __dirname,
1010
});
1111

12-
const eslintConfig = [
13-
...compat.extends("next/core-web-vitals", "next/typescript"),
14-
];
12+
const eslintConfig = [...compat.extends("next/core-web-vitals", "next/typescript")];
1513

1614
export default eslintConfig;
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
4-
/* config options here */
4+
/* config options here */
55
};
66

77
export default nextConfig;
88

9-
// added by create cloudflare to enable calling `getCloudflareContext()` in `next dev`
10-
import { initOpenNextCloudflareForDev } from '@opennextjs/cloudflare';
9+
// Enable calling `getCloudflareContext()` in `next dev`.
10+
// See https://opennext.js.org/cloudflare/bindings#local-access-to-bindings.
11+
import { initOpenNextCloudflareForDev } from "@opennextjs/cloudflare";
1112
initOpenNextCloudflareForDev();
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { defineCloudflareConfig } from "@opennextjs/cloudflare";
22

33
export default defineCloudflareConfig({
4-
// Uncomment to enable R2 cache,
5-
// It should be imported as:
6-
// `import r2IncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/r2-incremental-cache";`
7-
// See https://opennext.js.org/cloudflare/caching for more details
8-
// incrementalCache: r2IncrementalCache,
4+
// Uncomment to enable R2 cache,
5+
// It should be imported as:
6+
// `import r2IncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/r2-incremental-cache";`
7+
// See https://opennext.js.org/cloudflare/caching for more details
8+
// incrementalCache: r2IncrementalCache,
99
});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const config = {
2-
plugins: ["@tailwindcss/postcss"],
2+
plugins: ["@tailwindcss/postcss"],
33
};
44

55
export default config;
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
@import "tailwindcss";
22

33
:root {
4-
--background: #ffffff;
5-
--foreground: #171717;
4+
--background: #ffffff;
5+
--foreground: #171717;
66
}
77

88
@theme inline {
9-
--color-background: var(--background);
10-
--color-foreground: var(--foreground);
11-
--font-sans: var(--font-geist-sans);
12-
--font-mono: var(--font-geist-mono);
9+
--color-background: var(--background);
10+
--color-foreground: var(--foreground);
11+
--font-sans: var(--font-geist-sans);
12+
--font-mono: var(--font-geist-mono);
1313
}
1414

1515
@media (prefers-color-scheme: dark) {
16-
:root {
17-
--background: #0a0a0a;
18-
--foreground: #ededed;
19-
}
16+
:root {
17+
--background: #0a0a0a;
18+
--foreground: #ededed;
19+
}
2020
}
2121

2222
body {
23-
background: var(--background);
24-
color: var(--foreground);
25-
font-family: Arial, Helvetica, sans-serif;
23+
background: var(--background);
24+
color: var(--foreground);
25+
font-family: Arial, Helvetica, sans-serif;
2626
}
Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,28 @@
11
{
2-
"compilerOptions": {
3-
"target": "ES2017",
4-
"lib": ["dom", "dom.iterable", "esnext"],
5-
"allowJs": true,
6-
"skipLibCheck": true,
7-
"strict": true,
8-
"noEmit": true,
9-
"esModuleInterop": true,
10-
"module": "esnext",
11-
"moduleResolution": "bundler",
12-
"resolveJsonModule": true,
13-
"isolatedModules": true,
14-
"jsx": "preserve",
15-
"incremental": true,
16-
"plugins": [
17-
{
18-
"name": "next"
19-
}
20-
],
21-
"paths": {
22-
"@/*": ["./src/*"]
23-
},
24-
"types": [
25-
"./cloudflare-env.d.ts",
26-
"node"
27-
]
28-
},
29-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
30-
"exclude": ["node_modules"]
2+
"compilerOptions": {
3+
"target": "ES2017",
4+
"lib": ["dom", "dom.iterable", "esnext"],
5+
"allowJs": true,
6+
"skipLibCheck": true,
7+
"strict": true,
8+
"noEmit": true,
9+
"esModuleInterop": true,
10+
"module": "esnext",
11+
"moduleResolution": "bundler",
12+
"resolveJsonModule": true,
13+
"isolatedModules": true,
14+
"jsx": "preserve",
15+
"incremental": true,
16+
"plugins": [
17+
{
18+
"name": "next"
19+
}
20+
],
21+
"paths": {
22+
"@/*": ["./src/*"]
23+
},
24+
"types": ["./cloudflare-env.d.ts", "node"]
25+
},
26+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
27+
"exclude": ["node_modules"]
3128
}

0 commit comments

Comments
 (0)