Skip to content

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

🔧 Allow serving landing static assets from a separate host (#3471)

Luke Vella3cd586b48e0b
diff --git a/apps/landing/next.config.ts b/apps/landing/next.config.ts
index f9bf7496b..5731d1e7e 100644
--- a/apps/landing/next.config.ts
+++ b/apps/landing/next.config.ts
@@ -17,6 +17,9 @@ const nextConfig: NextConfig = {
cacheComponents: true,
allowedDevOrigins: [process.env.DEV_DOMAIN ?? "landing.rallly.localhost"],
productionBrowserSourceMaps: true,
+ // Serves /_next/static from a CDN-cached host to keep the immutable
+ // bundles off Vercel's bandwidth bill. Unset outside production.
+ assetPrefix: process.env.NEXT_PUBLIC_ASSET_PREFIX,
transpilePackages: [
"@rallly/ui",
"@rallly/tailwind-config",