Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
⬆️ Bump portless to 0.15.6 and derive dev URLs from PORTLESS_URL (#3326)
Luke Vellaab4a83bc5510
diff --git a/CLAUDE.md b/CLAUDE.mdindex e349c4161..98fcab376 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -79,7 +79,7 @@ pnpm --filter @rallly/web i18n:sync # Push changed English defaults into app.jpnpm sherif # Check package dependenciespnpm screenshots # Capture marketing screenshots (packages/screenshots)pnpm release # Cut a release (scripts/create-release.sh)-pnpm proxy:start # Start the portless .test proxy+pnpm proxy:start # Start the portless .localhost proxy (auto-starts with dev scripts)```## Architecturediff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 1e3b6265d..35eb10d59 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -75,9 +75,9 @@ The following instructions are for running the project locally for development.6. Start the portless proxy- The dev scripts route the apps through [portless](https://portless.sh), which exposes them at stable HTTPS URLs (e.g. `https://web.rallly.test`) instead of `localhost:<port>`.+ The dev scripts route the apps through [portless](https://portless.sh), which exposes them at stable HTTPS URLs (e.g. `https://web.rallly.localhost`) instead of `localhost:<port>`.- Start the proxy:+ The proxy starts automatically the first time you run a dev script, so this step is usually unnecessary. To start it manually:```bashpnpm proxy:start@@ -89,13 +89,11 @@ The following instructions are for running the project locally for development.pnpm dev```- By default the app is served at `https://web.rallly.test`. To run it at a different domain (e.g. to run multiple dev servers from separate worktrees at the same time), set `DEV_DOMAIN` to the full domain you want:+ The app is served at `https://web.rallly.localhost`, and the landing page at `https://landing.rallly.localhost`.- ```bash- DEV_DOMAIN=web-myfeature.rallly.test pnpm dev- ```+ In a git worktree, portless prepends the branch name automatically, so every worktree gets its own host (e.g. `https://my-feature.web.rallly.localhost`) and several dev servers can run side by side without colliding. Portless prints the URL on startup.- This registers the domain with portless, allows it as a dev origin in Next.js, and overrides `NEXT_PUBLIC_BASE_URL` so links, assets, and auth callbacks point at the right host. Note that `DEV_DOMAIN` must be set in your shell — setting it in `.env` has no effect because the dev script reads it before Next.js loads env files.+ The dev script exports the URL portless assigned as `NEXT_PUBLIC_BASE_URL` and `DEV_DOMAIN`, so links, assets, auth callbacks and the Next.js dev-origin allowlist follow the host automatically — nothing to configure per worktree. Because these are set in the shell, they take precedence over any `NEXT_PUBLIC_BASE_URL` in `.env`.## Translations 🌐diff --git a/apps/landing/next.config.ts b/apps/landing/next.config.tsindex 731684203..f9bf7496b 100644--- a/apps/landing/next.config.ts+++ b/apps/landing/next.config.ts@@ -15,7 +15,7 @@ function createAppUrl(subpath: string) {const nextConfig: NextConfig = {cacheComponents: true,- allowedDevOrigins: ["landing.rallly.test"],+ allowedDevOrigins: [process.env.DEV_DOMAIN ?? "landing.rallly.localhost"],productionBrowserSourceMaps: true,transpilePackages: ["@rallly/ui",diff --git a/apps/landing/package.json b/apps/landing/package.jsonindex a6171357c..5a0cb3165 100644--- a/apps/landing/package.json+++ b/apps/landing/package.json@@ -3,7 +3,7 @@"version": "0.0.0","private": true,"scripts": {- "dev": "portless landing.rallly cross-env TAILWIND_MODE=watch next dev --turbopack",+ "dev": "portless run --name landing.rallly sh -c 'NEXT_PUBLIC_BASE_URL=$PORTLESS_URL DEV_DOMAIN=${PORTLESS_URL#https://} TAILWIND_MODE=watch pnpm exec next dev --turbopack'","build": "next build","analyze": "cross-env ANALYZE=true next build","start": "next start",diff --git a/apps/web/next.config.ts b/apps/web/next.config.tsindex 31fa3c19d..a452e70f6 100644--- a/apps/web/next.config.ts+++ b/apps/web/next.config.ts@@ -13,7 +13,7 @@ const withBundleAnalyzer = createBundleAnalyzer({});const nextConfig: NextConfig = {- allowedDevOrigins: [process.env.DEV_DOMAIN ?? "web.rallly.test"],+ allowedDevOrigins: [process.env.DEV_DOMAIN ?? "web.rallly.localhost"],experimental: {staleTimes: {dynamic: 60,diff --git a/apps/web/package.json b/apps/web/package.jsonindex 5101fb69d..57cbd23ac 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -3,7 +3,7 @@"version": "0.0.0","private": true,"scripts": {- "dev": "domain=${DEV_DOMAIN:-web.rallly.test}; env ${DEV_DOMAIN:+NEXT_PUBLIC_BASE_URL=https://$DEV_DOMAIN} portless ${domain%.test} next dev",+ "dev": "portless run --name web.rallly sh -c 'NEXT_PUBLIC_BASE_URL=$PORTLESS_URL DEV_DOMAIN=${PORTLESS_URL#https://} pnpm exec next dev'","build": "next build","build:test": "NODE_ENV=test next build","analyze": "cross-env ANALYZE=true next build",diff --git a/package.json b/package.jsonindex d8d99758d..4d11b23fc 100644--- a/package.json+++ b/package.json@@ -19,7 +19,7 @@"db:seed": "pnpm --filter @rallly/database exec prisma db seed","db:push": "pnpm --filter @rallly/database exec prisma db push","db:format": "pnpm --filter @rallly/database exec prisma format",- "proxy:start": "portless proxy start --tld test",+ "proxy:start": "portless proxy start","proxy:stop": "portless proxy stop","docker:up": "docker compose -f docker-compose.dev.yml up -d --wait","docker:pull": "docker compose -f docker-compose.dev.yml pull",@@ -49,7 +49,7 @@"husky": "^9.1.7","lint-staged": "^16.2.7","oxlint": "^1.83.0",- "portless": "^0.12.0",+ "portless": "^0.15.6","prettier": "^3.5.3","prisma": "^7.8.0","turbo": "^2.6.3",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 70d6dbb25..150e7ba19 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -35,8 +35,8 @@ importers:specifier: ^1.83.0version: 1.83.0portless:- specifier: ^0.12.0- version: 0.12.0+ specifier: ^0.15.6+ version: 0.15.6prettier:specifier: ^3.5.3version: 3.8.1@@ -627,7 +627,7 @@ importers:version: link:../tsconfig'@react-email/ui':specifier: ^6.9.3- version: 6.9.3(@opentelemetry/[email protected])(@playwright/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 6.9.3(@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])'@types/react':specifier: 19.2.13version: 19.2.13@@ -10579,9 +10579,9 @@ packages:resolution: {integrity: sha512-PxkIc/2ZpLiEzQXu5YRDOUgBlfGYBY8156HY5ZcRAwwonMk5W/MrJP2LLkG/hF7GEQzaHo2aS7ho6ZLCOvf+6g==}engines: {node: '>=12.0.0'}- resolution: {integrity: sha512-zE8EYJ5xIEtKEBu1wnD+FavOE90/GNxRixF4Mu2hxMvDuVx1ftUbA6VbjbxI9sP9LUt0L26l6OiENGo4EFtLfw==}- engines: {node: '>=20'}+ resolution: {integrity: sha512-uOAwWLF32rmyEGFASzSO0VOaqb/AQxFCCzyZbPGd82UNNOfIEvc09zy92nroNibE5HNfzV4oVB0ObKbPXgkM9A==}+ engines: {node: '>=24'}os: [darwin, linux, win32]hasBin: true@@ -17479,10 +17479,10 @@ snapshots:dependencies:react: 19.2.6- '@react-email/[email protected](@opentelemetry/[email protected])(@playwright/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@react-email/[email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:esbuild: 0.28.1- next: 16.3.3(@opentelemetry/[email protected])(@playwright/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ next: 16.3.3(@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])transitivePeerDependencies:- '@babel/core'- '@opentelemetry/api'@@ -23926,7 +23926,7 @@ snapshots:- '@types/node'- babel-plugin-macros- [email protected](@opentelemetry/[email protected])(@playwright/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected]):+ [email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected]):dependencies:'@next/env': 16.3.3'@swc/helpers': 0.5.23@@ -24403,7 +24403,7 @@ snapshots:- [email protected]: {}+ [email protected]: {}diff --git a/turbo.json b/turbo.jsonindex 1432adaac..4db295fbf 100644--- a/turbo.json+++ b/turbo.json@@ -40,7 +40,7 @@"dependsOn": ["^db:generate"],"cache": false,"persistent": true,- "passThroughEnv": ["DEV_DOMAIN"]+ "passThroughEnv": ["DEV_DOMAIN", "PORTLESS_URL"]},"start": {"cache": false,