Skip to content

chore(deploy): add .railwayignore so uploads stay under the size limit - #72

Merged
ralyodio merged 1 commit into
masterfrom
chore/railwayignore
Jul 31, 2026
Merged

chore(deploy): add .railwayignore so uploads stay under the size limit#72
ralyodio merged 1 commit into
masterfrom
chore/railwayignore

Conversation

@ralyodio

Copy link
Copy Markdown
Collaborator

Why

railway up uploads the entire working tree. The repo carries ~291 MB of source media that isn't needed to build or serve the app:

dir size
videos/ 197 MB
images/ 87 MB
audio/ 6.9 MB

That pushed the upload to 332 MB, which the upload endpoint rejects before the build ever starts:

Failed to upload code. File too large (332596198 bytes):
<h1>413 Payload Too Large</h1> ... cloudflare

This is why merged changes weren't reaching production.

Why these three are safe to exclude

The copies the app actually serves live under public/ (18 MB public/videos, 12 MB public/badges, 2.4 MB public/assets), and public/ is not ignored.

  • app/videos/page.tsx reads path.join(process.cwd(), "public", "videos") — not the top-level videos/.
  • Nothing under app/, lib/, components/, scripts/, next.config.ts or package.json references the top-level videos/, images/ or audio/. The only images/ hits are the OpenAI API URL in lib/genart.ts and a comment in lib/config.ts.

Verification

Deployed with this file present — upload succeeded and the build started, where the previous attempt 413'd.

🤖 Generated with Claude Code

railway up uploads the whole working tree. The repo carries 291 MB of
source media in videos/, images/ and audio/, which pushed the upload to
332 MB and got it rejected with a Cloudflare 413 before the build ever
started.

None of it is needed to build or serve. app/videos/page.tsx reads
public/videos, and the badges and artwork the app renders come from
public/badges and public/assets; nothing under app/, lib/, components/
or scripts/ references the top-level directories.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

vu1nz Security Review

0 finding(s) in PR #?

No security issues found.

@ralyodio
ralyodio merged commit 5210eea into master Jul 31, 2026
2 checks passed
@ralyodio
ralyodio deleted the chore/railwayignore branch July 31, 2026 02:06
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.

1 participant