Skip to content

fix: prod start issue - #71

Merged
chaitanyapotti merged 3 commits into
masterfrom
fix/prod-start-issue
Mar 11, 2026
Merged

fix: prod start issue#71
chaitanyapotti merged 3 commits into
masterfrom
fix/prod-start-issue

Conversation

@hieu-w

@hieu-w hieu-w commented Mar 11, 2026

Copy link
Copy Markdown
Contributor

Motivation and Context

Jira Link:
NA

Description

Fix build issue on prod after stack upgrade

How has this been tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project. (run lint)
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My code requires a db migration.

Note

Medium Risk
Touches production boot/migration scripts and DB connection configuration (read/write splitting and Aurora session settings), which can cause runtime or connectivity issues if environment variables/configs are mismatched.

Overview
Fixes production startup by separating dev vs prod execution: start now runs TypeScript via tsx, while prod runs the compiled dist output, and Knex migration scripts are adjusted to run TypeScript configs under newer Node (NODE_OPTIONS='--import tsx').

Updates database bootstrapping to explicitly select read/write Knex configs based on NODE_ENV (development/staging/production) and adds an Aurora read-replica afterCreate hook plus connection logging in knexfile.ts to ensure expected session consistency settings in replica environments.

Written by Cursor Bugbot for commit e5b1ea3. This will update automatically on new commits. Configure here.

@hieu-w
hieu-w requested review from a team as code owners March 11, 2026 02:23
@chaitanyapotti
chaitanyapotti merged commit 1aa7911 into master Mar 11, 2026
5 checks passed
@chaitanyapotti
chaitanyapotti deleted the fix/prod-start-issue branch March 11, 2026 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants