-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Progress toward integrating more tightly with Cloudflare Pages * Add favicon and experiment with accessing CF bindings * Tweaks to fix build * More adjustments * Again * Update some deps * Explicitly add pnpm as package manager * Remove beta wrangler.toml config * Use pnpm in commands * Remove unnecessary KV access * Switch to src folder, add direct D1 integration * Add analytics binding * Test latency * More info * Fix obvious error * More data * Remove SonicJS path for posts, add pagination * Clean up code, add summary field * Add desc on orderby * Update page size, upgrade deps
- Loading branch information
1 parent
4d44c98
commit 015130b
Showing
36 changed files
with
3,786 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
{ | ||
"extends": ["next/core-web-vitals", "plugin:prettier/recommended"], | ||
"extends": ["next/core-web-vitals", "plugin:next-on-pages/recommended", "plugin:prettier/recommended"], | ||
"plugins": [ | ||
"react-compiler", | ||
"unused-imports" | ||
"unused-imports", | ||
"next-on-pages" | ||
], | ||
"rules": { | ||
"react-compiler/react-compiler": "error", | ||
"unused-imports/no-unused-imports-ts": "warn" | ||
"unused-imports/no-unused-imports-ts": "warn", | ||
"next-on-pages/no-unsupported-configs": "warn" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,6 @@ yarn-error.log* | |
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
|
||
.wrangler |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Generated by Wrangler on Fri Jun 28 2024 16:57:45 GMT-0400 (Eastern Daylight Time) | ||
// by running `wrangler types --env-interface CloudflareEnv env.d.ts` | ||
|
||
interface CloudflareEnv { | ||
KVDATA: KVNamespace; | ||
D1DATA: D1Database; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** @type {import('next').NextConfig} */ | ||
|
||
import { setupDevPlatform } from "@cloudflare/next-on-pages/next-dev"; | ||
|
||
const nextConfig = { | ||
experimental: { | ||
reactCompiler: true, | ||
}, | ||
}; | ||
|
||
export default nextConfig; | ||
|
||
if (process.env.NODE_ENV === "development") { | ||
await setupDevPlatform(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.