betterstart-cli 0.0.72 → 0.0.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -23587,13 +23587,22 @@ async function runRailwayDeployFlow(options) {
23587
23587
  service,
23588
23588
  options.session.env
23589
23589
  );
23590
+ const url = await ensureRailwayDomain(options.session, options.cwd, service);
23591
+ if (!url) {
23592
+ throw new Error("Railway could not create a public domain required for Better Auth.");
23593
+ }
23594
+ const providerOverrides = {
23595
+ ...options.providerOverrides,
23596
+ BETTERSTART_AUTH_URL: url,
23597
+ NEXT_PUBLIC_BETTERSTART_AUTH_URL: url
23598
+ };
23590
23599
  const envSpinner = spinner2();
23591
23600
  envSpinner.start("Syncing environment variables to Railway");
23592
23601
  const sync = await syncRailwayServiceEnv(
23593
23602
  options.session,
23594
23603
  options.cwd,
23595
23604
  service,
23596
- options.providerOverrides ?? {}
23605
+ providerOverrides
23597
23606
  );
23598
23607
  envSpinner.clear();
23599
23608
  for (const key of sync.failed) {
@@ -23662,7 +23671,6 @@ async function runRailwayDeployFlow(options) {
23662
23671
  ${deploy.stderr}`) ?? deploy.errorMessage
23663
23672
  };
23664
23673
  }
23665
- const url = await ensureRailwayDomain(options.session, options.cwd, service);
23666
23674
  deploySpinner.stop(url ? `Deployed ${pc3.cyan(url)}` : "Deployed to Railway");
23667
23675
  return { ok: true, url, service, syncedEnvKeys: sync.synced };
23668
23676
  } catch (error) {