Skip to content

nermalcat69/framer-reverse-proxy

Repository files navigation

Framer Reverse Proxy

image

A Next.js reverse proxy that forwards requests to a Framer-hosted site under your own custom domain. It rewrites URLs, injects SEO metadata, and handles static assets and video streaming transparently.

Note: This project is for educational purposes only. Use it at your own risk. It is a demonstration of how reverse proxies work and how they can be useful when you want to map a custom domain to a Framer site.

This was made by me to tackle the issue of 1GB Bandwidth limit


How it works

Every incoming request is caught by a single catch-all route and forwarded to the configured Framer publish URL. HTML responses are post-processed to rewrite internal Framer URLs to your domain and inject per-page SEO tags. Assets and videos pass through as-is.


Setup

  1. Install dependencies:
bun install
  1. Edit config/site.config.ts and set your values:
const siteConfig = {
  framerUrl: "https://your-project.framer.app", // your Framer publish URL
  domain: "https://yourdomain.com",              // your custom domain
  name: "Your Site Name",
};
  1. Edit config/seo.config.ts to set titles and descriptions for each page. Running a build will automatically append any new pages found in the Framer sitemap.

  2. Run the development server:

bun run dev
  1. Build and start for production:
bun run build
bun start

Deployment

Deploy to any platform that supports Next.js (Vercel, Railway, etc.). Point your custom domain DNS to the deployment. No additional configuration is required beyond config/site.config.ts.

About

Bypass framer's bandwidth limits with caching and reverse proxy :>

Topics

Resources

License

Stars

Watchers

Forks

Contributors