clerk / multi-domain-test

Playground for internally testing the multi domain and reverse proxy features

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multi-domain

The repo contains two Nextjs apps, one for the primary and one for the satellite domain.

Set up

  1. Install turbo.
npm i -g turbo

Development

Build all apps with

turbo build

Start all apps in development mode

turbo dev

Configuration

The following environment variables are supported.

Name Type Description
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY string Required. The publishable key for your instance. You can find it in the Clerk dashboard, under API keys.
CLERK_SECRET_KEY string Required. The instance's secret key. You can find it in the Clerk dashboard, under API keys.
NEXT_PUBLIC_CLERK_DOMAIN string Required for applications that run on a satellite domain. Set this to clerk.<your-domain>.
NEXT_PUBLIC_CLERK_SIGN_IN_URL string Required for applications that run on a satellite domain. This is the primary application's sign in url. Example: https://<your-primary-domain>/sign-in.
CLERK_API_URL string The absolute URL of the Clerk Backend API. Defaults to https://api.clerk.com.
NEXT_PUBLIC_CLERK_PROXY_URL string Required for applications that run behind a reverse proxy. Can be either a relative path (/__clerk) or a full URL (https://<your-domain>/__clerk).

About

Playground for internally testing the multi domain and reverse proxy features


Languages

Language:TypeScript 45.2%Language:CSS 26.8%Language:JavaScript 25.3%Language:Dockerfile 2.0%Language:HTML 0.7%