stack/examples/convex
BilalG1 479d5432ba
fix dev failing tests (#955)
<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md

-->

<!-- RECURSEML_SUMMARY:START -->
## High-level PR Summary
This PR fixes database schema issues related to Prisma migrations by
setting the correct `search_path` before applying auto-migrations and
removing the `SchemaMigration` table from the CI workflow to ensure
proper schema comparison during migration checks.

⏱️ Estimated Review Time: 5-15 minutes

<details>
<summary>💡 Review Order Suggestion</summary>

| Order | File Path |
|-------|-----------|
| 1 | `apps/backend/src/auto-migrations/index.tsx` |
| 2 | `.github/workflows/check-prisma-migrations.yaml` |
</details>



[![Need help? Join our
Discord](https://img.shields.io/badge/Need%20help%3F%20Join%20our%20Discord-5865F2?style=plastic&logo=discord&logoColor=white)](https://discord.gg/n3SsVDAW6U)


[![Analyze latest
changes](d1ed7a31db/?repo_owner=stack-auth&repo_name=stack-auth&pr_number=955)
<!-- RECURSEML_SUMMARY:END -->
<!-- ELLIPSIS_HIDDEN -->


----

> [!IMPORTANT]
> Fixes Prisma migration schema issues and a string concatenation error
in `getUserInfo`.
> 
>   - **Database Schema**:
> - Removes `SchemaMigration` table in
`.github/workflows/check-prisma-migrations.yaml` to ensure correct
schema comparison.
> - Sets `STACK_SEED_MODE` to `'true'` in `seed()` in `seed.ts` for
consistent seeding behavior.
>   - **Bug Fix**:
> - Fixes string concatenation error in `getUserInfo` in
`myFunctions.ts` by using `+` instead of `obj.displayName`.
> 
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral)<sup>
for 5b664a0fe7. You can
[customize](https://app.ellipsis.dev/stack-auth/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>


<!-- ELLIPSIS_HIDDEN -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Corrected user info message to properly display the user’s name in the
example app.

* **Chores**
* CI workflow now clears auto-generated migration metadata before
comparing schema changes to reduce false positives.
* Seeding now explicitly sets a seed-mode environment flag and no longer
auto-executes on direct invocation, enabling more controlled runs.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-10-15 13:57:28 -07:00
..
app Convex README 2025-10-10 04:27:05 -07:00
components Convex init script 2025-10-14 01:34:49 -07:00
convex fix dev failing tests (#955) 2025-10-15 13:57:28 -07:00
public Convex implementation (#913) 2025-09-24 19:16:45 +00:00
stack Convex README 2025-10-10 04:27:05 -07:00
.env.development Convex README 2025-10-10 04:27:05 -07:00
.eslintrc.js Convex implementation (#913) 2025-09-24 19:16:45 +00:00
.gitignore Convex README 2025-10-10 04:27:05 -07:00
CHANGELOG.md chore: update package versions 2025-10-15 10:56:40 -07:00
eslint.config.mjs Convex implementation (#913) 2025-09-24 19:16:45 +00:00
globals.css Convex README 2025-10-10 04:27:05 -07:00
next.config.ts Convex implementation (#913) 2025-09-24 19:16:45 +00:00
package-lock.json Convex implementation (#913) 2025-09-24 19:16:45 +00:00
package.json chore: update package versions 2025-10-15 10:56:40 -07:00
postcss.config.mjs Convex README 2025-10-10 04:27:05 -07:00
README.md Convex implementation (#913) 2025-09-24 19:16:45 +00:00
tailwind.config.js Convex README 2025-10-10 04:27:05 -07:00
tsconfig.json Convex implementation (#913) 2025-09-24 19:16:45 +00:00

Welcome to your Convex + Next.js app

This is a Convex project created with npm create convex.

After the initial setup (<2 minutes) you'll have a working full-stack app using:

  • Convex as your backend (database, server logic)
  • React as your frontend (web page interactivity)
  • Next.js for optimized web hosting and page routing
  • Tailwind for building great looking accessible UI

Get started

If you just cloned this codebase and didn't use npm create convex, run:

npm install
npm run dev

If you're reading this README on GitHub and want to use this template, run:

npm create convex@latest -- -t nextjs

Learn more

To learn more about developing your project with Convex, check out:

  • The Tour of Convex for a thorough introduction to Convex principles.
  • The rest of Convex docs to learn about all Convex features.
  • Stack for in-depth articles on advanced topics.

Join the community

Join thousands of developers building full-stack apps with Convex: