mirror of
https://github.com/KazooTTT/kazoottt-blog.git
synced 2025-06-16 15:31:21 +08:00
chore: use env
This commit is contained in:
@ -19,14 +19,7 @@ export default defineConfig({
|
||||
mode: 'directory',
|
||||
runtime: {
|
||||
mode: process.env.NODE_ENV === 'production' ? 'off' : 'local',
|
||||
persistTo: process.env.NODE_ENV === 'production' ? undefined : '.wrangler/state/v3/d1',
|
||||
bindings: {
|
||||
DB: {
|
||||
type: 'd1',
|
||||
databaseName: 'blog-pageviews',
|
||||
databaseId: 'ab9e5f7d-e254-4e7d-bd85-5d944a622682'
|
||||
}
|
||||
}
|
||||
persistTo: process.env.NODE_ENV === 'production' ? undefined : '.wrangler/state/v3/d1'
|
||||
}
|
||||
}),
|
||||
redirects: {
|
||||
|
@ -10,3 +10,8 @@ format = "directory"
|
||||
[site]
|
||||
bucket = "./dist"
|
||||
pages_build_output_dir = "dist"
|
||||
|
||||
[[d1_databases]]
|
||||
binding = "DB"
|
||||
database_name = "blog-pageviews"
|
||||
database_id = "${D1_DATABASE_ID}"
|
Reference in New Issue
Block a user