create-vexcms 0.1.0-alpha.2 → 0.1.0-alpha.4

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.
Files changed (29) hide show
  1. package/README.md +11 -3
  2. package/dist/index.js +1183 -1013
  3. package/package.json +1 -1
  4. package/templates/base-nextjs/README.md +11 -3
  5. package/templates/base-nextjs/convex/tsconfig.json +2 -2
  6. package/templates/base-nextjs/next.config.ts +7 -0
  7. package/templates/base-nextjs/package.json +6 -7
  8. package/templates/base-nextjs/src/app/globals.css +10 -9
  9. package/templates/base-nextjs/src/app/layout.tsx +6 -0
  10. package/templates/base-nextjs/src/vexcms/collections/users.ts +3 -1
  11. package/templates/marketing-site/convex/seed.ts +247 -6
  12. package/templates/marketing-site/src/app/(frontend)/(site)/layout.tsx +37 -0
  13. package/templates/marketing-site/src/app/(frontend)/layout.tsx +10 -24
  14. package/templates/marketing-site/src/app/(vexcms)/admin/layout.tsx +32 -0
  15. package/templates/marketing-site/src/app/layout.tsx +58 -0
  16. package/templates/marketing-site/src/components/FirstAdminBootstrap.tsx +51 -0
  17. package/templates/marketing-site/src/components/motion-primitives/animated-group.tsx +44 -120
  18. package/templates/marketing-site/src/components/motion-primitives/reveal.module.css +32 -0
  19. package/templates/marketing-site/src/components/motion-primitives/text-effect.tsx +41 -267
  20. package/templates/marketing-site/src/vexcms/blocks/CTA/config.ts +1 -1
  21. package/templates/marketing-site/src/vexcms/blocks/FAQ/config.ts +1 -1
  22. package/templates/marketing-site/src/vexcms/blocks/Footer/config.ts +2 -2
  23. package/templates/marketing-site/src/vexcms/blocks/Header/config.ts +1 -1
  24. package/templates/marketing-site/src/vexcms/blocks/Hero/config.ts +2 -2
  25. package/templates/marketing-site/src/vexcms/blocks/Hero/index.tsx +10 -44
  26. package/templates/marketing-site/src/vexcms/collections/pages.ts +3 -0
  27. /package/templates/marketing-site/src/app/(frontend)/{PageContent.tsx → (site)/PageContent.tsx} +0 -0
  28. /package/templates/marketing-site/src/app/(frontend)/{[slug] → (site)/[slug]}/page.tsx +0 -0
  29. /package/templates/marketing-site/src/app/(frontend)/{page.tsx → (site)/page.tsx} +0 -0
package/README.md CHANGED
@@ -114,9 +114,17 @@ replacing the generated placeholder values so the app stops pointing at
114
114
 
115
115
  The installer writes `.env.local` with a generated `BETTER_AUTH_SECRET`,
116
116
  `NEXT_PUBLIC_SITE_URL`, and `SITE_URL` already filled in — only the two Convex URLs above need
117
- replacing for local dev. In the [Convex Dashboard](https://dashboard.convex.dev), add
118
- `BETTER_AUTH_SECRET` and `SITE_URL` under **Settings → Environment Variables** using the same
119
- values so server-side auth checks and email links resolve correctly.
117
+ replacing for local dev.
118
+
119
+ Better Auth runs *inside* the Convex deployment, not the Next.js server, so it never reads
120
+ `.env.local`. Push the same two values to the deployment itself:
121
+
122
+ ```bash
123
+ npx convex env set SITE_URL http://localhost:3010
124
+ npx convex env set BETTER_AUTH_SECRET <the BETTER_AUTH_SECRET value from .env.local>
125
+ ```
126
+
127
+ Skipping this step is the most common cause of a `403` on the first sign-in attempt.
120
128
 
121
129
  ### 3. Run the dev servers
122
130