Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples: multi-tenant seed script, readme and other improvements #10702

Merged

Conversation

bratvanov
Copy link
Contributor

@bratvanov bratvanov commented Jan 21, 2025

Seed script

  1. Fix duplicate username for the [email protected] user (changed username from user3 to multi-admin, as user3 already exists for the [email protected] email address).
  2. Unify all users to use the demo password instead of test, as is the convention with all other Payload examples.
  3. Change the example tenant domains from localhost.com (which is privately registered) to the .test TLD, recommended as per rfc2606 for testing.

Readme

  1. Document the tenant users (previously, it was difficult to find the usernames/passwords without looking at the seed script)
  2. Add a command to copy the example environment variables
  3. Fix the provided hosts file code to be on a single line, removed the ports (which don't work in hosts files), and added 127.0.0.1.
  4. Minor grammar changes

package.json

Other

  • Fixed typo in exported access const superAdminOrTeanantAdminAccess -> superAdminOrTenantAdminAccess

@bratvanov bratvanov changed the title examples(multi-tenant): seed script, readme and other improvements examples - multi-tenant seed script, readme and other improvements Jan 21, 2025
@bratvanov bratvanov changed the title examples - multi-tenant seed script, readme and other improvements examples: multi-tenant seed script, readme and other improvements Jan 21, 2025
@bratvanov
Copy link
Contributor Author

👋 Hey @JarrodMFlesch do you mind reviewing this, and letting me know if it looks good? Thanks!

@JarrodMFlesch JarrodMFlesch merged commit ae0736b into payloadcms:main Feb 4, 2025
13 checks passed
@JarrodMFlesch
Copy link
Contributor

Thanks for this and thanks for pinging me! Looked good, merged 👍

@bratvanov bratvanov deleted the multi-tenant-example-readme branch February 4, 2025 14:14
Copy link
Contributor

github-actions bot commented Feb 5, 2025

🚀 This is included in version v3.21.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants