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

chore(templates): fix multi-tenant example and switch to postgres #10459

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions examples/multi-tenant/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
build
dist
# npm
node_modules
package-lock.json

# sensitive secrets
.env

# compiled output
.next
build
dist

# generated code
.generated-schema.graphql
15 changes: 15 additions & 0 deletions examples/multi-tenant/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
**/generated-schema.graphql
**/payload-types.ts
.tmp
**/.git
**/.hg
**/.pnp.*
**/.svn
**/.yarn/**
**/build
**/dist/**
**/node_modules
**/temp
**/docs/**
tsconfig.json
pnpm-lock.yaml
6 changes: 6 additions & 0 deletions examples/multi-tenant/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100,
"semi": false
}
9 changes: 8 additions & 1 deletion examples/multi-tenant/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
"dev": "cross-env NODE_OPTIONS=--no-deprecation && pnpm seed && next dev",
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",
"generate:migrations": "payload migrate:create",
"generate:schema": "payload-graphql generate:schema",
"generate:types": "payload generate:types",
"payload": "cross-env NODE_OPTIONS=--no-deprecation payload",
"seed": "npm run payload migrate:fresh",
"start": "cross-env NODE_OPTIONS=--no-deprecation next start"
},
"dependencies": {
"@payloadcms/db-mongodb": "latest",
"@payloadcms/db-postgres": "latest",
"@payloadcms/next": "latest",
"@payloadcms/richtext-lexical": "latest",
"@payloadcms/ui": "latest",
Expand All @@ -42,5 +43,11 @@
},
"engines": {
"node": "^18.20.2 || >=20.9.0"
},
"pnpm": {
"overrides": {
"react": "19.0.0",
"react-dom": "19.0.0"
}
}
}
Loading