fix new user error + add wrangler.toml examples
This commit is contained in:
10
backend/ai/wrangler.toml.example
Normal file
10
backend/ai/wrangler.toml.example
Normal file
@ -0,0 +1,10 @@
|
||||
name = "ai"
|
||||
main = "src/index.ts"
|
||||
compatibility_date = "2024-05-12"
|
||||
compatibility_flags = ["nodejs_compat"]
|
||||
|
||||
[ai]
|
||||
binding = "AI"
|
||||
|
||||
[vars]
|
||||
KEY = ""
|
@ -43,6 +43,13 @@
|
||||
"when": 1714950365718,
|
||||
"tag": "0005_last_the_twelve",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 6,
|
||||
"version": "5",
|
||||
"when": 1716432225404,
|
||||
"tag": "0006_lively_mattie_franklin",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
@ -28,6 +28,7 @@ export const sandbox = sqliteTable("sandbox", {
|
||||
name: text("name").notNull(),
|
||||
type: text("type", { enum: ["react", "node"] }).notNull(),
|
||||
visibility: text("visibility", { enum: ["public", "private"] }),
|
||||
createdAt: integer("createdAt", { mode: "timestamp_ms" }),
|
||||
userId: text("user_id")
|
||||
.notNull()
|
||||
.references(() => user.id),
|
||||
|
12
backend/database/wrangler.toml.example
Normal file
12
backend/database/wrangler.toml.example
Normal file
@ -0,0 +1,12 @@
|
||||
#:schema node_modules/wrangler/config-schema.json
|
||||
name = "database"
|
||||
main = "src/index.ts"
|
||||
compatibility_date = "2024-04-05"
|
||||
compatibility_flags = ["nodejs_compat"]
|
||||
|
||||
services = [{ binding = "STORAGE", service = "storage" }]
|
||||
|
||||
[[d1_databases]]
|
||||
binding = "DB"
|
||||
database_name = ""
|
||||
database_id = ""
|
13
backend/storage/wrangler.toml.example
Normal file
13
backend/storage/wrangler.toml.example
Normal file
@ -0,0 +1,13 @@
|
||||
#:schema node_modules/wrangler/config-schema.json
|
||||
name = "storage"
|
||||
main = "src/index.ts"
|
||||
compatibility_date = "2024-04-05"
|
||||
compatibility_flags = ["nodejs_compat"]
|
||||
|
||||
account_id = ""
|
||||
workers_dev = true
|
||||
|
||||
[[r2_buckets]]
|
||||
binding = 'R2'
|
||||
bucket_name = ''
|
||||
preview_bucket_name = ''
|
Reference in New Issue
Block a user