You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .cursorrules
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,13 @@ You are an expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI,
3
3
You can refer to the markdown files in `./cursor-docs` to get more context about the project.
4
4
Do not forget to update the project plan in `./cursor-docs/project-plan.md` as you work on the project.
5
5
6
-
You are also excellent at Cloudflare Workers and other tools like D1 serverless database and KV. You can suggest usage of new tools (changes in wrangler.toml file) to add more primitives like:
6
+
You are also excellent at Cloudflare Workers and other tools like D1 serverless database and KV. You can suggest usage of new tools (changes in wrangler.json file) to add more primitives like:
7
7
- R2: File storage
8
8
- KV: Key-value storage
9
-
- Always use the existing KV namespace in `wrangler.toml` don't ever create new ones.
9
+
- Always use the existing KV namespace in `wrangler.json` don't ever create new ones.
10
10
- AI: AI multimodal inference
11
-
- others primitives in `wrangler.toml`
12
-
- After adding a new primitive to `wrangler.toml`, always run `pnpm run cf-typegen` to generate the new types.
11
+
- others primitives in `wrangler.json`
12
+
- After adding a new primitive to `wrangler.json`, always run `pnpm run cf-typegen` to generate the new types.
13
13
14
14
Authentication:
15
15
- The authentication logic is in `src/utils/auth.ts` and `src/utils/kv-session.ts` and is based on Lucia Auth.
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,9 +98,9 @@ Have a look at the [project plan](./cursor-docs/project-plan.md) to get an overv
98
98
5.`pnpm dev`
99
99
6. Open http://localhost:3000
100
100
101
-
## Changes to wrangler.toml
101
+
## Changes to wrangler.json
102
102
103
-
After making a change to wrangler.toml, you need to run `pnpm cf-typegen` to generate the new types.
103
+
After making a change to wrangler.json, you need to run `pnpm cf-typegen` to generate the new types.
104
104
105
105
## Things to change and customize before deploying to production
106
106
1. Go to `src/constants.ts` and update it with your project details
@@ -115,7 +115,7 @@ After making a change to wrangler.toml, you need to run `pnpm cf-typegen` to gen
115
115
2. Set either `RESEND_API_KEY` or `SENDGRID_API_KEY` as a secret in your Cloudflare Worker depending on which email service you want to use.
116
116
3. Create a Turnstile catcha in your Cloudflare account, and set the `NEXT_PUBLIC_TURNSTILE_SITE_KEY` as a Github Actions variable.
117
117
4. Set `TURNSTILE_SECRET_KEY` as a secret in your Cloudflare Worker.
118
-
5. Update the `wrangler.toml` file with the new database and KV namespaces and env variables. If you change the D1 database name, you also need to update the `db:migrate:dev` script in the `package.json` file.
118
+
5. Update the `wrangler.json` file with the new database and KV namespaces and env variables. If you change the D1 database name, you also need to update the `db:migrate:dev` script in the `package.json` file.
119
119
6. Go to https://dash.cloudflare.com/profile/api-tokens and click on "Use template" next to "Edit Cloudflare Workers". On the next, page add the following permissions in addition to the ones from the template:
120
120
- Account:AI Gateway:Edit
121
121
- Account:Workers AI:Edit
@@ -128,7 +128,7 @@ After making a change to wrangler.toml, you need to run `pnpm cf-typegen` to gen
128
128
7. Add the API token to the Github repository secrets as `CLOUDFLARE_API_TOKEN`
129
129
8. Add the Cloudflare account id to the Github repository variables as `CLOUDFLARE_ACCOUNT_ID`
130
130
9. Optional: If you want clear the CDN cache on deploy, add `CLOUDFLARE_ZONE_ID` to the Github repository variables for the zone id of your domain. This is the zone id of your domain, not the account id.
131
-
10. Add the database name to the Github repository variables as `DATABASE_ID`. This should match the database name in the `wrangler.toml` file.
131
+
10. Add the database name to the Github repository variables as `DATABASE_ID`. This should match the database name in the `wrangler.json` file.
0 commit comments