Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🔧 Switch dev URLs to local.rallly.co via portless proxy

Luke Vellae648e58f01a4
diff --git a/README.md b/README.md
index 824494282..819327e28 100644
--- a/README.md
+++ b/README.md
@@ -80,7 +80,17 @@ The following instructions are for running the project locally for development.
- run migrations to create a new database schema
- seed the database with test users and random data
-6. Start the Next.js server
+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.local.rallly.co`) instead of `localhost:<port>`.
+
+ Start the proxy:
+
+ ```bash
+ pnpm proxy:start
+ ```
+
+7. Start the Next.js server
```bash
pnpm dev
diff --git a/apps/landing/.env.sample b/apps/landing/.env.sample
index ec24e7def..1da573ee7 100644
--- a/apps/landing/.env.sample
+++ b/apps/landing/.env.sample
@@ -1,15 +1,8 @@
# URL of the main web app
-NEXT_PUBLIC_APP_BASE_URL=http://web.rallly.localhost:1355
+NEXT_PUBLIC_APP_BASE_URL=http://web.local.rallly.co
# The base url where the landing page is accessible, including the scheme.
-NEXT_PUBLIC_BASE_URL=http://landing.rallly.localhost:1355
-
-# For HTTPS:
-# 1. run "pnpm portless proxy start --https"
-# 2. uncomment the following lines
-# PORTLESS_HTTPS=1
-# NEXT_PUBLIC_APP_BASE_URL=https://web.rallly.localhost:1355
-# NEXT_PUBLIC_BASE_URL=https://landing.rallly.localhost:1355
+NEXT_PUBLIC_BASE_URL=http://landing.local.rallly.co
# A connection string to your Postgres database
DATABASE_URL=postgres://postgres:postgres@localhost:5450/rallly
diff --git a/apps/landing/next.config.ts b/apps/landing/next.config.ts
index 5135b8411..32ad14bfb 100644
--- a/apps/landing/next.config.ts
+++ b/apps/landing/next.config.ts
@@ -14,7 +14,7 @@ function createAppUrl(subpath: string) {
const nextConfig: NextConfig = {
cacheComponents: true,
- allowedDevOrigins: ["landing.rallly.co"],
+ allowedDevOrigins: ["landing.local.rallly.co"],
productionBrowserSourceMaps: true,
transpilePackages: [
"@rallly/ui",
diff --git a/apps/landing/package.json b/apps/landing/package.json
index c2b6c7144..2be4ab559 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 landing.local.rallly cross-env TAILWIND_MODE=watch next dev --turbopack",
"build": "next build",
"analyze": "cross-env ANALYZE=true next build",
"start": "next start",
diff --git a/apps/web/.env.sample b/apps/web/.env.sample
index 2141bbcb0..e0cc524b7 100644
--- a/apps/web/.env.sample
+++ b/apps/web/.env.sample
@@ -4,13 +4,7 @@ SECRET_PASSWORD=
# The base url where this instance is accessible, including the scheme.
# Example: https://example.com
-# Default below is configured for the local development server using Portless (see: https://port1355.dev)
-NEXT_PUBLIC_BASE_URL=http://web.rallly.co
-## For HTTPS:
-# 1. run "pnpm portless proxy start --https"
-# 2. uncomment the following lines
-# PORTLESS_HTTPS=1
-# NEXT_PUBLIC_BASE_URL=https://web.rallly.localhost:1355
+NEXT_PUBLIC_BASE_URL=https://web.local.rallly.co
# A connection string to your Postgres database
DATABASE_URL=postgres://postgres:postgres@localhost:5450/rallly
diff --git a/apps/web/next.config.ts b/apps/web/next.config.ts
index 6806d6aef..96fe29508 100644
--- a/apps/web/next.config.ts
+++ b/apps/web/next.config.ts
@@ -12,7 +12,7 @@ const withBundleAnalyzer = createBundleAnalyzer({
});
const nextConfig: NextConfig = {
- allowedDevOrigins: ["web.rallly.co"],
+ allowedDevOrigins: ["web.local.rallly.co"],
experimental: {
staleTimes: {
dynamic: 60,
diff --git a/apps/web/package.json b/apps/web/package.json
index 2db269fad..dcfdcb06f 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"scripts": {
- "dev": "portless web.rallly next dev",
+ "dev": "portless web.local.rallly 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.json
index 371bf153f..15fca0607 100644
--- a/package.json
+++ b/package.json
@@ -19,6 +19,8 @@
"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 co",
+ "proxy:stop": "portless proxy stop",
"docker:up": "docker compose -f docker-compose.dev.yml up -d --wait",
"docker:down": "docker compose -f docker-compose.dev.yml down --volumes --remove-orphans",
"test:integration": "turbo test:integration",