Skip to content

Commit 28e91c7

Browse files
committed
chore: migrate configuration from wrangler.toml to wrangler.jsonc
1 parent 9d6e93d commit 28e91c7

File tree

3 files changed

+65
-49
lines changed

3 files changed

+65
-49
lines changed

.dev.vars.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ ENVIRONMENT = "development" # development | production
22

33
APP_URL = "http://localhost:5173"
44
SESSION_SECRET = "3ebc25b381e87193f29ffea6b6d380dd"
5+
HONEYPOT_SECRET = "3ebc25b381e87193f29ffea6b6d380aa"
56

67
GITHUB_CLIENT_ID = "..."
78
GITHUB_CLIENT_SECRET = "..."

wrangler.jsonc

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"name": "rr7-remix-auth",
3+
"main": "./workers/server.ts",
4+
5+
"compatibility_date": "2024-11-18",
6+
"compatibility_flags": ["nodejs_compat"],
7+
8+
/**
9+
* Static Assets
10+
* @see https://developers.cloudflare.com/workers/wrangler/configuration/#static-assets
11+
*/
12+
"assets": {
13+
"directory": "./build/client/"
14+
},
15+
16+
/**
17+
* Cloudflare Workers accounts come with a workers.dev subdomain that is configurable in the Cloudflare dashboard.
18+
*/
19+
"workers_dev": true,
20+
21+
/**
22+
* Whether Wrangler should keep variables configured in the dashboard on deploy.
23+
* @see https://developers.cloudflare.com/workers/wrangler/configuration/
24+
*/
25+
"keep_vars": true,
26+
27+
/**
28+
* Configures automatic observability settings for telemetry data emitted from your Worker.
29+
* @see https://developers.cloudflare.com/workers/wrangler/configuration/#observability
30+
*/
31+
"observability": {
32+
"enabled": true
33+
},
34+
35+
36+
"kv_namespaces": [
37+
{
38+
"binding": "APP_KV",
39+
"id": "app_kv_id",
40+
"preview_id": "app_kv_preview_id"
41+
}
42+
],
43+
44+
"d1_databases": [
45+
{
46+
"binding": "DB",
47+
"database_name": "rr7-remix-auth",
48+
"database_id": "database_id",
49+
"migrations_dir": "drizzle"
50+
}
51+
],
52+
53+
"vars": {
54+
"ENVIRONMENT": "development",
55+
"APP_URL": "http://localhost:5173",
56+
"SESSION_SECRET": "3ebc25b381e87193f29ffea6b6d380dd",
57+
"HONEYPOT_SECRET": "3ebc25b381e87193f29ffea6b6d380aa",
58+
"GITHUB_CLIENT_ID": "...",
59+
"GITHUB_CLIENT_SECRET": "...",
60+
"GOOGLE_CLIENT_ID": "...apps.googleusercontent.com",
61+
"GOOGLE_CLIENT_SECRET": "...",
62+
"RESEND_API_KEY": "re_..."
63+
}
64+
}

wrangler.toml

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)