Neon integration (#3178)
### Context for review bots :
1.The agent can execute sql commands directly on production , this is
fine because they user may choose to start with a simple setup first and
use the production database directly (in a follow up PR we should give
the users the ability to sync dev branch to match production branch).The
user also has the possiblity to revert database changes .
2.Right now there’s no warning for destructive changes before migration
, this is fine for now as we're gonna add a follow up PR for this
3.When linking an existing neon project that doesnt have a developement
database , we're setting the default branch as the active branch . This
is fine because the user may prefer to start a simple setup at the
beginning and work directly on the production database , in addition
since the project was created outside dyad it may have a developement
branch named differently so it wouldnt be wise to auto create one here .
However, in a follow up PR we should allow the user to manually create
branches and sync dev branch to match production .
4.neon is only available for next.js now
5.We dont have enough tests for now, i am gonna add a follow-up PR to
cover this
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/3178"
target="_blank">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
<img
src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
alt="Open with Devin">
</picture>
</a>
<!-- devin-review-badge-end -->
---------
Co-authored-by:
Claude Opus 4.6 (1M context) <noreply@anthropic.com>
正在显示
drizzle/meta/0027_snapshot.json
0 → 100644
差异被折叠。
e2e-tests/fixtures/add-neon.md
0 → 100644
e2e-tests/neon_branch.spec.ts
0 → 100644
e2e-tests/neon_migration.spec.ts
0 → 100644
| ... | ... | @@ -67,7 +67,7 @@ |
| "@lexical/react": "^0.33.1", | ||
| "@modelcontextprotocol/sdk": "^1.17.5", | ||
| "@monaco-editor/react": "^4.7.0-rc.0", | ||
| "@neondatabase/api-client": "^2.1.0", | ||
| "@neondatabase/api-client": "^2.7.1", | ||
| "@neondatabase/serverless": "^1.0.1", | ||
| "@rollup/plugin-commonjs": "^28.0.3", | ||
| "@tailwindcss/typography": "^0.5.16", | ||
| ... | ... |
src/components/MigrationPanel.tsx
0 → 100644
src/hooks/useNeon.ts
0 → 100644
src/ipc/types/migration.ts
0 → 100644
差异被折叠。
差异被折叠。
src/ipc/utils/framework_utils.ts
0 → 100644
差异被折叠。
src/ipc/utils/migration_utils.ts
0 → 100644
差异被折叠。
src/ipc/utils/neon_utils.ts
0 → 100644
差异被折叠。
src/lib/errors.test.ts
0 → 100644
差异被折叠。
差异被折叠。
src/lib/framework_constants.ts
0 → 100644
差异被折叠。
src/neon_admin/neon_context.ts
0 → 100644
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
src/prompts/neon_prompt.ts
0 → 100644
差异被折叠。
src/raw-imports.d.ts
0 → 100644
差异被折叠。
请
注册
或者
登录
后发表评论