Skip to content

chore: update to latest#9

Open
tahirmahmudzade wants to merge 4 commits intoatinux:mainfrom
tahirmahmudzade:chore/update-latest
Open

chore: update to latest#9
tahirmahmudzade wants to merge 4 commits intoatinux:mainfrom
tahirmahmudzade:chore/update-latest

Conversation

@tahirmahmudzade
Copy link

@tahirmahmudzade tahirmahmudzade commented Oct 31, 2025

Summary

  • Updated deps to the latest versions.
  • Upgrade the starter to the current Nuxt 4 / NuxtHub 0.9 stack so new projects start from the latest dependencies.
  • Adjusted codebase to adapt new nuxt/ui version 4 with configuration tweaks.
  • Extended better-auth configuration to support the latest versions
  • Refresh the authentication experience with Nuxt UI components: centered hero, responsive card tabs, polished /user dashboard, and shared app shell tweaks.
  • Align local dev tooling (new scripts, .npmrc, VS Code defaults, Tailwind entry CSS) with the updated stack.

Note

After bumping to Nuxt 4/NuxtHub 0.9 I couldn’t get the CLI-provided npx nuxthub preview command working locally anymore. The worker starts but immediately loops on /api/auth/get-session because the D1 binding seems to be missing. The warning suggests upgrading Wrangler, and running wrangler@4.45.3 pages dev dist manually (with the flags above) does give the binding, but I’m not sure if that’s just me misconfiguring something or missing an additional setup step. @atinux do you know if there’s a preferred preview workflow now, or if I overlooked a configuration change when upgrading?

logs:

✨ Parsed 0 valid redirect rules.
✨ Parsed 4 valid header rules.
Using vars defined in .dev.vars
Your Worker has access to the following bindings:
Binding                                    Resource                  Mode
env.BETTER_AUTH_SECRET ("(hidden)")        Environment Variable      local
env.GITHUB_CLIENT_ID ("(hidden)")          Environment Variable      local
env.GITHUB_CLIENT_SECRET ("(hidden)")      Environment Variable      local

╭──────────────────────────────────────────────────────────────────────╮
│  [b] open a browser [d] open devtools [c] clear console [x] to exit  │
╰──────────────────────────────────────────────────────────────────────╯
⎔ Starting local server...
[wrangler:warn] The latest compatibility date supported by the installed Cloudflare Workers Runtime is "2025-10-11",
but you've requested "2025-10-31". Falling back to "2025-10-11"...
Features enabled by your requested compatibility date may not be available.
Upgrade to `wrangler@4.45.3` to remove this warning.
[wrangler:info] Ready on http://localhost:8788

[wrangler:info] GET /api/auth/get-session 302 Server Error (2ms)
[wrangler:info] GET /api/auth/get-session 500 Server Error (1ms)
[wrangler:info] GET /api/auth/get-session 302 Server Error (8ms)
[wrangler:info] GET /api/auth/get-session 500 Server Error (9ms)
[wrangler:info] GET /api/auth/get-session 302 Server Error (12ms)
[wrangler:info] GET /api/auth/get-session 500 Server Error (1ms)
[wrangler:info] GET /api/auth/get-session 302 Server Error (3ms)
[wrangler:info] GET /api/auth/get-session 500 Server Error (1ms)
[wrangler:info] GET /api/auth/get-session 302 Server Error (3ms)
[wrangler:info] GET /api/auth/get-session 500 Server Error (0ms)
[wrangler:info] GET /api/auth/get-session 302 Server Error (2ms)
[wrangler:info] GET /api/auth/get-session 500 Server Error (1ms)
⎔ Shutting down local server...
[wrangler:info] GET /api/auth/get-session 302 Server Error (3ms)
ℹ Cleaning up generated files for preview... 

@atinux
Copy link
Owner

atinux commented Nov 3, 2025

Hey @tahirmahmudzade

I am actually working on NuxtHub v1, you can checkout HugoRCD/nuxt-better-auth#30 which is the most up to date right now

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