https://github.com/clerk/multi-domain-test
Playground for internally testing the multi domain and reverse proxy features
https://github.com/clerk/multi-domain-test
Last synced: 3 months ago
JSON representation
Playground for internally testing the multi domain and reverse proxy features
- Host: GitHub
- URL: https://github.com/clerk/multi-domain-test
- Owner: clerk
- Created: 2023-02-09T07:07:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-18T16:32:24.000Z (almost 3 years ago)
- Last Synced: 2023-11-03T07:34:51.797Z (over 2 years ago)
- Language: TypeScript
- Size: 1.14 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Multi-domain
The repo contains two Nextjs apps, one for the primary and one for the satellite domain.
## Set up
1. Install [turbo](https://turbo.build/).
```
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.`.
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:///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:///__clerk`).