Development -> main#2190
Conversation
chore: update bun.lock
Add missing scaffolding to bring the admin app to parity with the landing and guides apps: - vercel.json — security response headers (X-Frame-Options, nosniff, etc.) - pages/404.tsx + pages/500.tsx — static custom error pages (works with output: export) - app/not-found.tsx — App Router 404 handler with Tailwind/themed styles https://claude.ai/code/session_01LqN8nDxX8KMs8s53J4DGVD
Drop vercel.json from landing and admin (not deployed to Vercel) and strip .vercel from the clean scripts in landing and guides. https://claude.ai/code/session_01LqN8nDxX8KMs8s53J4DGVD
- wrangler.jsonc: configures packrat-admin as a Workers static assets project, serving from ./out with 404-page handling - public/_headers: security response headers for admin, landing, and guides (replaces the now-deleted vercel.json files) https://claude.ai/code/session_01LqN8nDxX8KMs8s53J4DGVD
Same wrangler.jsonc pattern as admin — serves ./out with 404-page handling. _headers already in place from the previous commit. https://claude.ai/code/session_01LqN8nDxX8KMs8s53J4DGVD
…ture-eOiWV claude/setup-admin-app-structure-eOiWV
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
packrat-admin | 92812d0 | Apr 16 2026, 03:52 AM |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (18)
📝 WalkthroughWalkthroughThis PR adds custom error pages to the admin app, introduces security headers and Cloudflare Wrangler configuration across multiple apps, relocates the demo navigation icon in the Expo app from the home screen to the profile screen, applies minor layout refinements to Expo UI components, updates build scripts to exclude Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Coverage Report for Expo Unit Tests Coverage (./apps/expo)
File CoverageNo changed files found. |
Coverage Report for API Unit Tests Coverage (./packages/api)
File CoverageNo changed files found. |
There was a problem hiding this comment.
Pull request overview
Updates the monorepo for the next release and shifts static web app deployment configuration from Vercel to Cloudflare (Wrangler + _headers), while also polishing a few Expo header interactions.
Changes:
- Bump workspace package versions to
2.0.19inbun.lock. - Add Cloudflare Wrangler +
_headerssecurity headers foradmin,landing, andguides; removeapps/landing/vercel.json. - Small Expo UI tweaks: improve header button spacing/tap targets and move the dev-only “Demo” icon from Home to Profile.
Reviewed changes
Copilot reviewed 18 out of 19 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| bun.lock | Bumps multiple workspace package versions from 2.0.18 → 2.0.19. |
| apps/landing/wrangler.jsonc | Adds Wrangler config for deploying the static export output (./out). |
| apps/landing/vercel.json | Removes Vercel-specific header configuration. |
| apps/landing/public/_headers | Reintroduces security headers via Cloudflare Pages _headers. |
| apps/landing/package.json | Updates clean script to drop .vercel. |
| apps/guides/wrangler.jsonc | Adds Wrangler config for deploying the static export output (./out). |
| apps/guides/public/_headers | Adds Cloudflare Pages _headers security headers. |
| apps/guides/package.json | Updates clean script to drop .vercel. |
| apps/expo/features/weather/screens/LocationsScreen.tsx | Adjusts header button layout (spacing/alignment) for back/add actions. |
| apps/expo/features/trips/screens/TripWeatherDetailsScreen.tsx | Increases back icon size and adds hitSlop for better tap target. |
| apps/expo/features/trips/screens/TripListScreen.tsx | Tweaks header right-side spacing. |
| apps/expo/features/packs/screens/PackListScreen.tsx | Tweaks header right-side spacing. |
| apps/expo/app/(app)/(tabs)/profile/index.tsx | Adds dev-only Demo icon to Profile header (guarded by clientEnvs.NODE_ENV). |
| apps/expo/app/(app)/(tabs)/(home)/index.tsx | Removes Demo icon from Home header. |
| apps/admin/wrangler.jsonc | Adds Wrangler config for deploying the static export output (./out). |
| apps/admin/public/_headers | Adds Cloudflare Pages _headers security headers. |
| apps/admin/pages/500.tsx | Adds custom static /500 page for export/static hosting scenarios. |
| apps/admin/pages/404.tsx | Adds custom static /404 page for export/static hosting scenarios. |
| apps/admin/app/not-found.tsx | Adds App Router not-found UI for runtime/app-router navigation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| import { Backpack } from 'lucide-react'; | ||
|
|
||
| export default function Custom404() { | ||
| return ( | ||
| <div |
There was a problem hiding this comment.
This app now has both App Router (app/not-found.tsx) and a Pages Router pages/404.tsx. In this repo, pages/404.tsx is used in some apps specifically as a static export workaround (overriding Next’s internal _error). Consider adding a short file header comment explaining why pages/404.tsx exists here and how it relates to app/not-found.tsx to avoid accidental deletion later.
| import { AlertTriangle } from 'lucide-react'; | ||
|
|
||
| export default function Custom500() { | ||
| return ( | ||
| <div |
There was a problem hiding this comment.
Similar to pages/404.tsx, pages/500.tsx can look redundant in an App Router app. Consider adding a brief header comment noting if this file is intentionally present for static export / internal _error override behavior (as seen in other apps in this repo), so future refactors don’t remove it unintentionally.
Summary by CodeRabbit
New Features
Improvements
Chores