I am trying to create a build for nextjs but during the build it throws the error of Missing publishableKey which i already have added inside the secrets in fly.io. I dont want to pass the build args like this
Do you really need clerk auth env variables at build time? If not, flag those components as dynamic or use await connection() to prevent it from compiling buildtime.
Or you can use your CI/CD to store your secrets and inject it in your app/.env so it has access at build/run time.