Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .changeset/eleven-parents-send.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@opennextjs/cloudflare": patch
---

fix: do not log expected expected D1 errors

The `populateCache` command adds columns to the D1 tag cache for SWR support.
This is required for older deployments made before those column were added.
SQLite errors when the columns exist and we should not lof those errors.
Comment thread
vicb marked this conversation as resolved.
Outdated
3 changes: 2 additions & 1 deletion packages/cloudflare/src/cli/commands/populate-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,8 @@ function populateD1TagCache(
target: populateCacheOptions.target,
environment: populateCacheOptions.environment,
configPath: populateCacheOptions.wranglerConfigPath,
logging: "error",
// Do not log errors since the ALTER TABLE command will fail if the columns already exist.
logging: "none",
}
);

Expand Down
Loading