Skip to content

fix(templates): list the env nuxthub better auth needs to start - #2658

Merged
HugoRCD merged 1 commit into
nuxt:mainfrom
onmax:fix/better-auth-template-env
Nov 16, 2026
Merged

HugoRCD merged 1 commit into
nuxt:mainfrom
onmax:fix/better-auth-template-env

Conversation

@onmax

@onmax onmax commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

NuxtHub Better Auth shows "Fails to start" on nuxt.com/templates. @nuxtjs/better-auth returns a 500 in production without an auth secret and a site URL, and the check starts templates without deploy.env with no env.

This lists both vars under deploy.env, so the check stops after the build and the Deploy buttons ask for them. Locally it returns a 500 without them and a 200 with both.

@onmax
onmax requested a review from atinux as a code owner November 16, 2026 19:27
@vercel

vercel Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

@onmax is attempting to deploy a commit to the Nuxt Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

nuxt.com preview

This pull request is closed: its preview is no longer available.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The NuxtHub Better Auth template now declares NUXT_BETTER_AUTH_SECRET and NUXT_PUBLIC_SITE_URL in its deployment environment variables.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Merge Risk: Minimal · up to ee1ed

This adds the two environment variables the NuxtHub Better Auth template needs to start, so Deploy buttons will request them. The change is small and configuration-only, and no merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the template's deploy.env now lists the environment variables that NuxtHub Better Auth needs to start. The title is a single, specific line and matches the single-file…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description states that the PR adds NUXT_BETTER_AUTH_SECRET and NUXT_PUBLIC_SITE_URL to the NuxtHub Better Auth template's deploy.env. It explains the reason: the template fails to start on nuxt.c…
Full details: Title check

Explanation

The title names the main change: the template's deploy.env now lists the environment variables that NuxtHub Better Auth needs to start. The title is a single, specific line and matches the single-file diff, which adds NUXT_BETTER_AUTH_SECRET and NUXT_PUBLIC_SITE_URL to the template.

Full details: Description check

Explanation

The description states that the PR adds NUXT_BETTER_AUTH_SECRET and NUXT_PUBLIC_SITE_URL to the NuxtHub Better Auth template's deploy.env. It explains the reason: the template fails to start on nuxt.com/templates without these variables. It also gives local test results (500 without the variables, 200 with both). This matches the changeset, which adds those two variables to the template file.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 10b69f9b-1dc5-4a43-9771-1dd79cb4ffb6
Commits

Reviewing files that changed from the base of the PR and between a7cdde9 and ee1ed80.

Files selected for processing: 1

  • content/templates/nuxthub-better-auth.yml

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@nuxt-com-bundle-report

Copy link
Copy Markdown

Bundle size

Explore the comparison →

Client 1.32 MB $\color{green}\textsf{(-7 B, -0.0}\%\textsf{)}$ · Server 9.12 MB $\color{green}\textsf{(-487 B, -0.0}\%\textsf{)}$

No route loads 100 B more or less before it renders.

Largest changes in the server
Package or file Base PR Δ
[unassigned] 7.81 MB 7.81 MB −235 B (−0.0%)
.nuxt/dist/server/_nuxt/index-styles-2.B6DrCj0p.mjs 107 B n/a −107 B (−100.0%)
.nuxt/dist/server/_nuxt/index-styles-3.DbMrBnS7.mjs n/a 107 B +107 B
.nuxt/dist/server/_nuxt/HomeLogoCarousel-styles.YukJVAN3.mjs n/a 94 B +94 B
.nuxt/dist/server/_nuxt/HomeSectionContributors-styles.qc5C-uKN.mjs n/a 88 B +88 B
.nuxt/dist/server/_nuxt/HomeSectionContributors-styles.BVCSxT9G.mjs 86 B n/a −86 B (−100.0%)
.nuxt/dist/server/_nuxt/index-styles-2.umEggrSg.mjs n/a 84 B +84 B
.nuxt/dist/server/_nuxt/index-styles.CFvzT8RG.mjs n/a 80 B +80 B
.nuxt/dist/server/_nuxt/index-styles.DbAAZlrt.mjs 75 B n/a −75 B (−100.0%)
.nuxt/dist/server/_nuxt/HomeBirthdayBadge-styles.umEggrSg.mjs 74 B n/a −74 B (−100.0%)

And 3 more packages or files.

Brotli sizes. Changes under 100 B are left out of the tables. Measured by nuxt-bundle-analyzer for ee1ed80.

@HugoRCD
HugoRCD merged commit e76b54a into nuxt:main Nov 16, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants