chore(deploy): add .railwayignore so uploads stay under the size limit - #72
Merged
Conversation
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>
vu1nz Security Review0 finding(s) in PR #? No security issues found. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
railway upuploads the entire working tree. The repo carries ~291 MB of source media that isn't needed to build or serve the app:videos/images/audio/That pushed the upload to 332 MB, which the upload endpoint rejects before the build ever starts:
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 MBpublic/videos, 12 MBpublic/badges, 2.4 MBpublic/assets), andpublic/is not ignored.app/videos/page.tsxreadspath.join(process.cwd(), "public", "videos")— not the top-levelvideos/.app/,lib/,components/,scripts/,next.config.tsorpackage.jsonreferences the top-levelvideos/,images/oraudio/. The onlyimages/hits are the OpenAI API URL inlib/genart.tsand a comment inlib/config.ts.Verification
Deployed with this file present — upload succeeded and the build started, where the previous attempt 413'd.
🤖 Generated with Claude Code