Helping with setup my project
itaides
PROOP

2 months ago

1. Marketing Site (Astro Static)

Goal: Deploy apps/marketing as a static site with cleanUrls support (for Astro View Transitions).

Problem: Build succeeds, but runtime fails with:

./node_modules/.bin/serve: No such file or directory

What we tried:

- Setting Root Directory to apps/marketing

- Build command: cd ../.. && bun install && cd apps/marketing && bun run build && bun add serve

- Start command: ./node_modules/.bin/serve dist -l $PORT -c serve.json

The serve package isn't available at runtime even though we install it during build. It seems node_modules isn't copied to the runtime container.

serve.json (for cleanUrls):

{"cleanUrls": true}

Questions:

1. What's the recommended way to serve Astro static sites with cleanUrls on Railway?

2. Does Railway have built-in static file serving we should use instead?

3. How do we ensure dependencies installed during build are available at runtime?

---

2. Go API (Fiber)

Current setup: Deployed via DigitalOcean App Platform, but we'd prefer Railway for unified infrastructure.

Questions:

1. What's the recommended setup for a Go Fiber API?

2. Any special configuration for PostgreSQL connection pooling?

---

3. Admin Dashboard (React SPA)

Stack: TanStack Start (Vite + React 19)

Questions:

1. What's the best way to deploy a Vite React SPA?

2. Should we use static deployment or a Node.js server?

---

Environment

- Package manager: Bun

- Node version needed: 20+

- Monorepo with workspace dependencies

Project ID

f323ae81-3886-4d04-af92-91dda7d9a182 (bountiful-optimism)

---

Would you be able to help us configure these services correctly? We're happy to schedule a call if that would be easier.

Thank you!

$10 Bounty

0 Replies

Railway
BOT

2 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open Railway about 2 months ago


Loading...