{"id":26462927,"url":"https://github.com/clerk/clerk-nextjs-multi-domain-example","last_synced_at":"2025-03-19T06:26:17.143Z","repository":{"id":193277787,"uuid":"676479252","full_name":"clerk/clerk-nextjs-multi-domain-example","owner":"clerk","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-15T13:18:09.000Z","size":103,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-01-15T17:17:22.897Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clerk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-09T09:41:48.000Z","updated_at":"2023-12-28T05:05:15.000Z","dependencies_parsed_at":"2023-09-07T14:06:25.586Z","dependency_job_id":"e75cab03-d67b-4483-b40a-251419232983","html_url":"https://github.com/clerk/clerk-nextjs-multi-domain-example","commit_stats":null,"previous_names":["clerkinc/clerk-nextjs-multi-domain-example","clerk/clerk-nextjs-multi-domain-example"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clerk%2Fclerk-nextjs-multi-domain-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clerk%2Fclerk-nextjs-multi-domain-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clerk%2Fclerk-nextjs-multi-domain-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clerk%2Fclerk-nextjs-multi-domain-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clerk","download_url":"https://codeload.github.com/clerk/clerk-nextjs-multi-domain-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244367589,"owners_count":20441918,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-19T06:26:16.679Z","updated_at":"2025-03-19T06:26:17.136Z","avatar_url":"https://github.com/clerk.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://clerk.dev?utm_source=github\u0026utm_medium=multi-domain\" target=\"_blank\"\u003e\n    \u003cpicture\u003e\n      \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"./images/clerk-logo-dark.png\"\u003e\n      \u003cimg src=\"./images/clerk-logo-light.png\" height=\"64\"\u003e\n    \u003c/picture\u003e\n  \u003c/a\u003e\n  \u003cbr /\u003e\n\u003c/p\u003e\n\n# Clerk Multi Domain Example\n\nThis example project shows how to use [Clerk](https://www.clerk.dev/?utm_source=github\u0026utm_medium=starter_repos\u0026utm_campaign=multi-domain) with [Clerk's multi domain feature](https://clerk.com/docs/advanced-usage/satellite-domains).This repo contains two Next.js applications, one for the primary and one for the satellite domain.\n\n[![chat on Discord](https://img.shields.io/discord/856971667393609759.svg?logo=discord)](https://discord.com/invite/b5rXHjAg7A)\n[![documentation](https://img.shields.io/badge/documentation-clerk-green.svg)](https://clerk.dev/docs)\n[![twitter](https://img.shields.io/twitter/follow/ClerkDev?style=social)](https://twitter.com/intent/follow?screen_name=ClerkDev)\n\n---\n\n## Pre-requisites  \nTo run the example you need to:\n\n1. Sign up at Clerk.dev.\n2. Go to your Clerk dashboard and create an application.\n3. Use the Publishable Key and Secret key in both .env \n\n\n## Set up\n\n1. Install [turbo](https://turbo.build/).\n\n```\nnpm i -g turbo\n```\n\n2. Install dependencies \n\n```\nnpm install \n```\n\n## Development\n\nBuild all apps with\n\n```\nturbo build\n```\n\nStart all apps in development mode\n\n```\nturbo dev\n```\n\n## Configuration\n\nThe following environment variables are supported.\n\n| Name                              | Type   | Description                                                                                                                                                |\n| --------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY | string | Required. The publishable key for your instance. You can find it in the Clerk dashboard, under API keys.                                                   |\n| CLERK_SECRET_KEY                  | string | Required. The instance's secret key. You can find it in the Clerk dashboard, under API keys.                                                               |\n| NEXT_PUBLIC_CLERK_DOMAIN          | string | Required for applications that run on a satellite domain. Set this to `\u003cyour-domain\u003e`.                                                                     |\n| 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://\u003cyour-primary-domain\u003e/sign-in`. |\n| NEXT_PUBLIC_CLERK_IS_SATELLITE    | string | Required for applications that run on a satellite domain. Set this to `true`.                                                                              |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclerk%2Fclerk-nextjs-multi-domain-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclerk%2Fclerk-nextjs-multi-domain-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclerk%2Fclerk-nextjs-multi-domain-example/lists"}