-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 56e0ae4
Showing
31 changed files
with
9,366 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PAYLOAD_SECRET="your_secret_here" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** @type {import('eslint').Linter.Config} */ | ||
module.exports = { | ||
extends: ['next/core-web-vitals'], | ||
parserOptions: { | ||
project: ['./tsconfig.json'], | ||
tsconfigRootDir: __dirname, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
.yarn/install-state.gz | ||
|
||
/.idea/* | ||
!/.idea/runConfigurations | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
.pnpm-store | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
/media |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"printWidth": 100, | ||
"semi": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--install.ignore-engines true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM node:18-alpine | ||
|
||
RUN apk add --no-cache libc6-compat | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json pnpm-lock.yaml* ./ | ||
RUN corepack enable pnpm && pnpm i --frozen-lockfile | ||
|
||
COPY . /app | ||
RUN pnpm build | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["npm", "start", "--", "-p", "80"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# blank | ||
|
||
blank | ||
|
||
## Attributes | ||
|
||
- **Database**: mongodb | ||
- **Storage Adapter**: localDisk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# The docker-compose.yml file is __only__ used for local development. | ||
# This means that changes to this file will not affect cloud deployments in any way. | ||
# Read more at https://docs.divio.com/reference/docker-docker-compose/ | ||
services: | ||
web: | ||
build: . | ||
ports: | ||
- "8000:80" | ||
volumes: | ||
- ".:/app:rw" | ||
- "./data:/data:rw" | ||
- "node_modules:/app/node_modules" | ||
environment: | ||
DATABASE_URL: postgres://postgres@database_default:5432/db | ||
links: | ||
- database_default | ||
# The following command is used to start the local development server. | ||
# Removing this line will mimic the deployment behaviour on Divio Cloud. | ||
command: sh -c "pnpm dev --port 80 --hostname 0.0.0.0" | ||
|
||
database_default: | ||
image: postgres:15.7-alpine | ||
environment: | ||
POSTGRES_DB: "db" | ||
POSTGRES_HOST_AUTH_METHOD: "trust" | ||
SERVICE_MANAGER: "fsm-postgres" | ||
volumes: | ||
- ".:/app:rw" | ||
- "database-default:/var/lib/postgresql/data/" | ||
|
||
volumes: | ||
database-default: | ||
node_modules: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { withPayload } from '@payloadcms/next/withPayload' | ||
|
||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
// Your Next.js config here | ||
} | ||
|
||
export default withPayload(nextConfig) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"name": "myapp", | ||
"version": "1.0.0", | ||
"description": "A blank template to get started with Payload 3.0", | ||
"license": "MIT", | ||
"type": "module", | ||
"scripts": { | ||
"build": "cross-env NODE_OPTIONS=--no-deprecation next build", | ||
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev", | ||
"devsafe": "rm -rf .next && cross-env NODE_OPTIONS=--no-deprecation next dev", | ||
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap", | ||
"generate:types": "cross-env NODE_OPTIONS=--no-deprecation payload generate:types", | ||
"lint": "cross-env NODE_OPTIONS=--no-deprecation next lint", | ||
"payload": "cross-env NODE_OPTIONS=--no-deprecation payload", | ||
"start": "cross-env NODE_OPTIONS=--no-deprecation next start" | ||
}, | ||
"dependencies": { | ||
"@payloadcms/next": "beta", | ||
"@payloadcms/plugin-cloud": "beta", | ||
"@payloadcms/richtext-lexical": "beta", | ||
"cross-env": "^7.0.3", | ||
"graphql": "^16.8.1", | ||
"next": "15.0.0-canary.160", | ||
"payload": "beta", | ||
"react": "19.0.0-rc-5dcb0097-20240918", | ||
"react-dom": "19.0.0-rc-5dcb0097-20240918", | ||
"sharp": "0.32.6", | ||
"@payloadcms/db-postgres": "beta" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^22.5.4", | ||
"@types/react": "npm:types-react@19.0.0-rc.1", | ||
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1", | ||
"eslint": "^8", | ||
"eslint-config-next": "15.0.0-canary.160", | ||
"typescript": "5.6.2" | ||
}, | ||
"engines": { | ||
"node": "^18.20.2 || >=20.9.0" | ||
}, | ||
"pnpm": { | ||
"overrides": { | ||
"@types/react": "npm:types-react@19.0.0-rc.1", | ||
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1" | ||
} | ||
}, | ||
"overrides": { | ||
"@types/react": "npm:types-react@19.0.0-rc.1", | ||
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1" | ||
}, | ||
"packageManager": "pnpm@9.11.0+sha512.0a203ffaed5a3f63242cd064c8fb5892366c103e328079318f78062f24ea8c9d50bc6a47aa3567cabefd824d170e78fa2745ed1f16b132e16436146b7688f19b" | ||
} |
Oops, something went wrong.