Skip to content

Conversation

@aidankmcalister
Copy link
Member

@aidankmcalister aidankmcalister commented Sep 5, 2025

Summary by CodeRabbit

  • Documentation
    • Added a “Deploy to Railway” guide: prerequisites, creating a Railway project from a GitHub repo, provisioning a Postgres database, setting DATABASE_URL, redeploying, accessing the app, optional example app with sample endpoints, troubleshooting tips, and screenshots/links.
    • Switched several homepage card links from external URLs to internal relative routes.
    • Removed the Next.js SaaS Starter template from the Vercel integration templates.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 5, 2025

Walkthrough

Adds a new MDX guide describing how to deploy a Prisma ORM app to Railway, updates four AI homepage card links to internal routes, and removes one template entry from the Vercel integration docs. No code or exported/public API changes.

Changes

Cohort / File(s) Summary
Docs: Deploy to Railway guide
content/200-orm/200-prisma-client/500-deployment/101-traditional/325-deploy-to-railway.mdx
New MDX guide documenting deploying a Prisma ORM REST API to Railway: prerequisites, using the Official Prisma Railway Template or an optional Hono example project, creating a Railway project from GitHub, obtaining a Prisma Postgres DATABASE_URL, setting it in Railway, redeploying, example endpoints (/api, /api/feed, /api/seed), troubleshooting tips, and referenced images/links.
Docs: AI homepage link updates
content/900-ai/index.mdx
Changed four HomepageCard href.url values from external Prisma docs URLs to internal relative routes; link text and surrounding content unchanged.
Docs: Vercel integration templates
content/250-postgres/1100-integrations/200-vercel.mdx
Removed the Next.js SaaS Starter template line from the Templates list; no other content modified.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • nikolasburk
  • mhessdev

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ced53d7 and 65c6042.

📒 Files selected for processing (1)
  • content/200-orm/200-prisma-client/500-deployment/101-traditional/325-deploy-to-railway.mdx (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • content/200-orm/200-prisma-client/500-deployment/101-traditional/325-deploy-to-railway.mdx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: runner / linkspector
  • GitHub Check: Check internal links
  • GitHub Check: Lost Pixel
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch DC-5179-railway-docs-page

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2025

Dangerous URL check

No absolute URLs to prisma.io/docs found.
No local URLs found.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2025

Redirect check

This PR probably requires the following redirects to be added to static/_redirects:

  • This PR does not change any pages in a way that would require a redirect.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2025

Images automagically compressed by Calibre's image-actions

Compression reduced images by 78.3%, saving 248.0 KB.

Filename Before After Improvement Visual comparison
content/200-orm/200-prisma-client/500-deployment/101-traditional/images/railway-deploying.png 139.0 KB 29.7 KB 78.6% View diff
content/200-orm/200-prisma-client/500-deployment/101-traditional/images/railway-env-vars.png 78.9 KB 14.8 KB 81.2% View diff
content/200-orm/200-prisma-client/500-deployment/101-traditional/images/railway-final-product.png 67.5 KB 16.2 KB 76.0% View diff
content/200-orm/200-prisma-client/500-deployment/101-traditional/images/railway-networking.png 31.2 KB 7.9 KB 74.6% View diff

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Sep 5, 2025

Deploying docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 65c6042
Status: ✅  Deploy successful!
Preview URL: https://3368fa5e.docs-51g.pages.dev
Branch Preview URL: https://dc-5179-railway-docs-page.docs-51g.pages.dev

View logs

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (5)
content/200-orm/200-prisma-client/500-deployment/101-traditional/325-deploy-to-railway.mdx (5)

18-20: Verify the example repo details; avoid over-specifics unless confirmed.

The note says the example is a “simple Hono application” and implies certain endpoints later. Please confirm that the linked prisma-examples Railway project indeed uses Hono and exposes the same endpoints; if not, generalize the phrasing to avoid mismatch.

Proposed minimal copy tweak:

-If you don't have a project ready, you can use our [example Prisma project](https://github.com/prisma/prisma-examples/tree/latest/deployment-platforms/railway). It's a simple Hono application that uses Prisma ORM and includes a REST API, a frontend for testing endpoints, and a defined Prisma schema with migrations.
+If you don't have a project ready, you can use our [example Prisma project](https://github.com/prisma/prisma-examples/tree/latest/deployment-platforms/railway). It uses Prisma ORM, includes a REST API plus a small UI to exercise endpoints, and ships with a Prisma schema and migrations.

If you’d like, I can adjust the later “Endpoints” section to match the example once confirmed.


40-46: Tighten the “npx create-db” guidance; include @latest and lifetime/claim info.

Add the recommended @latest tag and briefly note the 24‑hour lifetime and claiming flow. This aligns with current Prisma docs. (prisma.io, npmjs.com)

-You'll need a Prisma Postgres connection string. There are two ways to obtain one:
+You'll need a Prisma Postgres connection string. There are two ways to obtain one:
@@
-- Run `npx create-db` for a temporary database _(no account required)_
+- Run `npx create-db@latest` for a temporary database _(no account required; expires after ~24 hours unless you claim it to keep)_

47-55: Clarify which connection string to use (Accelerate vs direct TCP).

Recommend the Prisma Accelerate-style URL when using Prisma ORM, and note sslmode=require for direct TCP strings. This prevents common connection pitfalls on hosts like Railway. (prisma.io)

 5. Paste your database connection string as the value
 6. Click **Deploy** to redeploy your application with the new environment variable
+
+Tip:
+- If you’re using Prisma ORM with Prisma Postgres, prefer the `prisma+postgres://...` connection string.
+- If you use a direct PostgreSQL URL, append `?sslmode=require`.

Also accurate that a redeploy is required for new variables to take effect. (station.railway.com, answeroverflow.com)


62-64: “Generate Domain” location is correct, but add optional custom-domain pointer.

The “Settings → Networking → Generate Domain” path matches Railway guidance; consider a one-line link to their public networking docs for custom domains. (station.railway.com)

-2. Under **Networking**, click **Generate Domain**
+2. Under **Networking**, click **Generate Domain** (for custom domains, see Railway’s Public Networking guide)

15-16: Minor list punctuation consistency.

Remove the period from the second bullet to match the first.

-* A GitHub repository with your application code.
+* A GitHub repository with your application code
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between bff98a8 and 524582a.

⛔ Files ignored due to path filters (4)
  • content/200-orm/200-prisma-client/500-deployment/101-traditional/images/railway-deploying.png is excluded by !**/*.png
  • content/200-orm/200-prisma-client/500-deployment/101-traditional/images/railway-env-vars.png is excluded by !**/*.png
  • content/200-orm/200-prisma-client/500-deployment/101-traditional/images/railway-final-product.png is excluded by !**/*.png
  • content/200-orm/200-prisma-client/500-deployment/101-traditional/images/railway-networking.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • content/200-orm/200-prisma-client/500-deployment/101-traditional/325-deploy-to-railway.mdx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
content/200-orm/200-prisma-client/500-deployment/101-traditional/325-deploy-to-railway.mdx

[grammar] ~15-~15: There might be a mistake here.
Context: ..., all you need is: * A Railway account * A GitHub repository with your application...

(QB_NEW_EN)


[grammar] ~44-~44: There might be a mistake here.
Context: ... to obtain one: - Prisma Data Platform - Run npx create-db for a temporary data...

(QB_NEW_EN)


[grammar] ~70-~70: Ensure spelling is correct
Context: ... deployed app! If you used the example proejct, you should see three api endpoints alr...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)


[grammar] ~70-~70: There might be a mistake here.
Context: ... see three api endpoints already set up: - Check API status (/api) - Load feed (`...

(QB_NEW_EN)


[grammar] ~71-~71: There might be a mistake here.
Context: ...eady set up: - Check API status (/api) - Load feed (/api/feed) - Seed data (`/a...

(QB_NEW_EN)


[grammar] ~72-~72: There might be a mistake here.
Context: ...tatus (/api) - Load feed (/api/feed) - Seed data (/api/seed) ![Railway deplo...

(QB_NEW_EN)


[style] ~77-~77: Consider an alternative verb to strengthen your wording.
Context: ...ages/railway-final-product.png) If you see any errors: - Wait a minute and refresh...

(IF_YOU_HAVE_THIS_PROBLEM)


[grammar] ~77-~77: There might be a mistake here.
Context: ...nal-product.png) If you see any errors: - Wait a minute and refresh - Ensure `DATA...

(QB_NEW_EN)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Cloudflare Pages
🔇 Additional comments (4)
content/200-orm/200-prisma-client/500-deployment/101-traditional/325-deploy-to-railway.mdx (4)

1-5: Frontmatter looks good.

Title and meta fields are consistent with the docs style.


24-31: UI wording check for “Configure GitHub App”.

These steps look right, but Railway’s UI labels occasionally change. Please sanity-check the exact button text (“Configure GitHub App”, “Create a New Project”) before publishing.

Would you like me to open a follow-up PR if the exact labels differ?


32-35: Nice pacing.

Calling out that the first deploy won’t run without DATABASE_URL sets expectations well.


36-36: All referenced Railway images are present
railway-deploying.png, railway-env-vars.png, railway-networking.png, and railway-final-product.png were found under content/200-orm/200-prisma-client/500-deployment/101-traditional/images/.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2025

Images automagically compressed by Calibre's image-actions

Compression reduced images by 8.6%, saving 4.5 KB.

Filename Before After Improvement Visual comparison
content/200-orm/200-prisma-client/500-deployment/101-traditional/images/railway-deploying.png 29.7 KB 26.9 KB 9.3% View diff
content/200-orm/200-prisma-client/500-deployment/101-traditional/images/railway-env-vars.png 14.8 KB 13.7 KB 7.4% View diff
content/200-orm/200-prisma-client/500-deployment/101-traditional/images/railway-networking.png 7.9 KB 7.3 KB 8.3% View diff

1 image did not require optimisation.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2025

Images automagically compressed by Calibre's image-actions

Compression reduced images by 6.9%, saving 970 B.

Filename Before After Improvement Visual comparison
content/200-orm/200-prisma-client/500-deployment/101-traditional/images/railway-env-vars.png 13.7 KB 12.8 KB 6.9% View diff

3 images did not require optimisation.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

♻️ Duplicate comments (1)
content/200-orm/200-prisma-client/500-deployment/101-traditional/325-deploy-to-railway.mdx (1)

74-77: Capitalize “API” and fix phrasing.

User-facing docs.

-If you used the example project, you should see three api endpoints already set up:
+If you used the example project, you should see three API endpoints already set up:
 - Check API status (`/api`)
 - Load feed (`/api/feed`)
 - Seed data (`/api/seed`)
🧹 Nitpick comments (3)
content/200-orm/200-prisma-client/500-deployment/101-traditional/325-deploy-to-railway.mdx (3)

48-50: Confirm npx create-db command is correct and supported.

Please verify this is the officially supported, stable way to provision a temporary Prisma Postgres instance and that it’s intended for public docs.


19-21: Bullet punctuation consistency.

Remove the trailing period from the second bullet or add one to the first; prefer none for both.

-* A GitHub repository with your application code.
+* A GitHub repository with your application code

81-86: Tighten troubleshooting copy.

Minor readability tweak.

-If you see any errors:
+If something isn't working:
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 524582a and 6247ab8.

⛔ Files ignored due to path filters (3)
  • content/200-orm/200-prisma-client/500-deployment/101-traditional/images/railway-deploying.png is excluded by !**/*.png
  • content/200-orm/200-prisma-client/500-deployment/101-traditional/images/railway-env-vars.png is excluded by !**/*.png
  • content/200-orm/200-prisma-client/500-deployment/101-traditional/images/railway-networking.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • content/200-orm/200-prisma-client/500-deployment/101-traditional/325-deploy-to-railway.mdx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
content/200-orm/200-prisma-client/500-deployment/101-traditional/325-deploy-to-railway.mdx

[grammar] ~19-~19: There might be a mistake here.
Context: ..., all you need is: * A Railway account * A GitHub repository with your application...

(QB_NEW_EN)


[grammar] ~74-~74: There might be a mistake here.
Context: ... see three api endpoints already set up: - Check API status (/api) - Load feed (`...

(QB_NEW_EN)


[grammar] ~75-~75: There might be a mistake here.
Context: ...eady set up: - Check API status (/api) - Load feed (/api/feed) - Seed data (`/a...

(QB_NEW_EN)


[grammar] ~76-~76: There might be a mistake here.
Context: ...tatus (/api) - Load feed (/api/feed) - Seed data (/api/seed) ![Railway deplo...

(QB_NEW_EN)


[style] ~81-~81: Consider an alternative verb to strengthen your wording.
Context: ...ages/railway-final-product.png) If you see any errors: - Wait a minute and refresh...

(IF_YOU_HAVE_THIS_PROBLEM)


[grammar] ~81-~81: There might be a mistake here.
Context: ...nal-product.png) If you see any errors: - Wait a minute and refresh - Ensure `DATA...

(QB_NEW_EN)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Check internal links
  • GitHub Check: runner / linkspector
  • GitHub Check: Lost Pixel
🔇 Additional comments (2)
content/200-orm/200-prisma-client/500-deployment/101-traditional/325-deploy-to-railway.mdx (2)

66-69: Verify current Railway UI labels.

Confirm the path/labels still read “Settings > Networking > Generate Domain” or add a note if “Public Networking” must be enabled first.


40-79: Ensure images exist and paths resolve at build time.

Confirm ./images/*.png are added to the repo at the correct relative path for this MDX file and render in production.

coderabbitai[bot]
coderabbitai bot previously approved these changes Sep 5, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

♻️ Duplicate comments (2)
content/200-orm/200-prisma-client/500-deployment/101-traditional/325-deploy-to-railway.mdx (2)

51-59: Add a migrations deploy step to avoid runtime failures.

Run migrations after setting DATABASE_URL so tables exist before first request.

Apply:

 5. Paste your database connection string as the value
-6. Click **Deploy** to redeploy your application with the new environment variable
+6. Click **Deploy** to redeploy your application with the new environment variable
+
+7. Apply your schema migrations so the database is ready:
+   - Preferred: add a deploy command: `npx prisma migrate deploy`
+   - Or run it once via the Railway Shell for this service

72-77: Fix capitalization and wording (“API”).

User-facing docs: use “API endpoints”.

Apply:

-If you used the example project, you should see three api endpoints already set up:
+If you used the example project, you should see three API endpoints already set up:
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 6247ab8 and d68a18e.

📒 Files selected for processing (2)
  • content/200-orm/200-prisma-client/500-deployment/101-traditional/325-deploy-to-railway.mdx (1 hunks)
  • content/900-ai/index.mdx (4 hunks)
🧰 Additional context used
🪛 LanguageTool
content/200-orm/200-prisma-client/500-deployment/101-traditional/325-deploy-to-railway.mdx

[grammar] ~19-~19: There might be a mistake here.
Context: ..., all you need is: * A Railway account * A GitHub repository with your application...

(QB_NEW_EN)


[grammar] ~74-~74: There might be a mistake here.
Context: ... see three api endpoints already set up: - Check API status (/api) - Load feed (`...

(QB_NEW_EN)


[grammar] ~75-~75: There might be a mistake here.
Context: ...eady set up: - Check API status (/api) - Load feed (/api/feed) - Seed data (`/a...

(QB_NEW_EN)


[grammar] ~76-~76: There might be a mistake here.
Context: ...tatus (/api) - Load feed (/api/feed) - Seed data (/api/seed) ![Railway deplo...

(QB_NEW_EN)


[style] ~81-~81: Consider an alternative verb to strengthen your wording.
Context: ...ages/railway-final-product.png) If you see any errors: - Wait a minute and refresh...

(IF_YOU_HAVE_THIS_PROBLEM)


[grammar] ~81-~81: There might be a mistake here.
Context: ...nal-product.png) If you see any errors: - Wait a minute and refresh - Ensure `DATA...

(QB_NEW_EN)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Check internal links
  • GitHub Check: runner / linkspector
  • GitHub Check: Lost Pixel
🔇 Additional comments (6)
content/900-ai/index.mdx (3)

152-155: Internal guide path resolves: /guides/ai-sdk-nextjs exists at content/800-guides/340-ai-sdk-nextjs.mdx.


92-96: Verified internal route and anchor
The /postgres/integrations/mcp-server#tools link is valid—the page at content/250-postgres/1100-integrations/400-mcp-server.mdx includes ### Tools headings.


103-107: Resolved: internal anchor matches slug Heading “## Integrating in AI tools” generates #integrating-in-ai-tools, so the link is valid—no changes needed.

content/200-orm/200-prisma-client/500-deployment/101-traditional/325-deploy-to-railway.mdx (3)

7-13: Good clarification on hosting.

Copy clearly states the app runs on Railway and connects to Prisma Postgres.


40-41: Image references verified. All referenced images are present and paths resolve correctly.


48-50: No update required: npx create-db is the correct current command for provisioning a temporary Prisma Postgres database.

coderabbitai[bot]
coderabbitai bot previously approved these changes Sep 5, 2025
coderabbitai[bot]
coderabbitai bot previously approved these changes Sep 5, 2025
@aidankmcalister aidankmcalister merged commit 3802d43 into main Sep 8, 2025
9 of 10 checks passed
@aidankmcalister aidankmcalister deleted the DC-5179-railway-docs-page branch September 8, 2025 12:30
@coderabbitai coderabbitai bot mentioned this pull request Sep 8, 2025
@coderabbitai coderabbitai bot mentioned this pull request Oct 13, 2025
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