🚀
sherpa.sh docs
HomeInfrastructureAboutPricingDocsSign Up
  • Getting Started
    • What is sherpa.sh?
    • Getting Started
    • App Configuration
    • Custom Domains
    • Regions
  • TRAINING
    • Video Courses
      • Lesson 1: Deploying your first application
  • Applications
    • Supported Frameworks
      • Next.js
      • React
      • Sveltekit
      • Payload CMS
      • Docker
      • Custom Setups
    • Supported AI Website Builders
    • Continuous Delivery
  • Promotions & Rollbacks
  • Debugging
  • Securing your Application
  • Databases
    • Support Databases
      • Postgres
      • MySQL
      • MongoDB
  • Architecture
    • Architecture Overview
      • Next.js Architecture
    • Compliance
  • Integration Help
    • Clerk
  • Zero Downtime Migration
  • CHANGELOG
    • v0.4.0 - 4/5/25
    • v0.3.1 - 22/4/25
    • v0.3.0 - 9/04/25
    • v0.2.0 - 27/03/25
    • v0.1.0 - 21/03/25
Powered by GitBook
On this page
  • Next.js Projects:
  • Getting Help
  1. Integration Help

Clerk

PreviousComplianceNextZero Downtime Migration

Last updated 3 days ago

When using Clerk with Sherpa.sh you there are a few caveats to be aware of. Because Sherpa.sh is a serverful environment where your app runs inside of a doctor container, your application is going to see localhost whenever it queries your hostname.

This means you have to explicitly tell clerk the return URLs in your environment settings to match the domain that you're using with sherpa.sh

Next.js Projects:

You need to set these on any project using Clerk

  • NEXT_PUBLIC_CLERK_SIGN_IN_FORCE_REDIRECT_URL

  • NEXT_PUBLIC_CLERK_SIGN_UP_FORCE_REDIRECT_URL

  • NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL

  • NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL

Typically, these can all be the same value, and that value is usually the homepage of your application. But this will all depend on your particular clerk, set up in your application.

Getting Help

If you need help with your setup, we will help you get your application deployed free of charge. Just open a ticket with us in Discord:

https://discord.com/invite/Pn7N2Wwbjy
environment variables