Skip to content

Fix missing ritualchain.source.ts file#6

Merged
BunsDev merged 1 commit into
mainfrom
sandbox/6e348d9b-af2b-4132-81a6--gb5j
Jul 4, 2026
Merged

Fix missing ritualchain.source.ts file#6
BunsDev merged 1 commit into
mainfrom
sandbox/6e348d9b-af2b-4132-81a6--gb5j

Conversation

@railway-app

@railway-app railway-app Bot commented Jul 4, 2026

Copy link
Copy Markdown

Fix: Add missing ritualchain.source.ts file

The build was failing because apps/web/src/lib/server/domains/feedback/sources/ritualchain.source.ts was missing, causing an unresolved import error during the SSR build phase.

Error

[UNRESOLVED_IMPORT] Error: Could not resolve './domains/feedback/sources/ritualchain.source' in src/lib/server/startup.ts

Changes

  • Added apps/web/src/lib/server/domains/feedback/sources/ritualchain.source.ts with the correct implementation for ensuring the RitualChain feedback source exists on startup

Why

The startup code imports ensureRitualChainFeedbackSource from this file, but it was missing. This caused the build to fail during the SSR environment build phase. The implementation ensures a RitualChain feedback source exists in the database on startup using an advisory lock to prevent concurrent creation.

## Fix: Add missing ritualchain.source.ts file

The build was failing because `apps/web/src/lib/server/domains/feedback/sources/ritualchain.source.ts` was missing, causing an unresolved import error during the SSR build phase.

### Error
```
[UNRESOLVED_IMPORT] Error: Could not resolve './domains/feedback/sources/ritualchain.source' in src/lib/server/startup.ts
```

### Changes
- Added `apps/web/src/lib/server/domains/feedback/sources/ritualchain.source.ts` with the correct implementation for ensuring the RitualChain feedback source exists on startup

### Why
The startup code imports `ensureRitualChainFeedbackSource` from this file, but it was missing. This caused the build to fail during the SSR environment build phase. The implementation ensures a RitualChain feedback source exists in the database on startup using an advisory lock to prevent concurrent creation.
@vercel

vercel Bot commented Jul 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
feedback-portal-web Error Error Jul 4, 2026 1:59pm

@BunsDev BunsDev marked this pull request as ready for review July 4, 2026 14:19
Copilot AI review requested due to automatic review settings July 4, 2026 14:19
@BunsDev BunsDev merged commit 2fe1d94 into main Jul 4, 2026
1 of 2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the missing ritualchain.source.ts module that is imported during SSR startup, restoring a working build by providing the ensureRitualChainFeedbackSource implementation used to auto-provision the RitualChain feedback source in the database.

Changes:

  • Added ensureRitualChainFeedbackSource() to create the RitualChain feedback source on startup if it does not already exist.
  • Uses a transaction-scoped Postgres advisory lock to prevent duplicate source creation during concurrent startups.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +6
/**
* RitualChain feedback source — auto-provisioned passive connector.
*
* One ritualchain source exists per deployment. Created on startup if absent.
* All new posts (including widget-submitted) are ingested automatically
* via the feedback_pipeline event hook on post.created.
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