Skip to content

Commit

Permalink
chore(templates): fix multi-tenant example and switch to postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
janbiasi committed Jan 8, 2025
1 parent 7321f9f commit 35d72f4
Show file tree
Hide file tree
Showing 32 changed files with 2,381 additions and 1,368 deletions.
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

0 comments on commit 35d72f4

Please sign in to comment.