-
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.
Merge pull request #3 from awhiteside1/aw/example
Builds with Nextjs
- Loading branch information
Showing
182 changed files
with
10,754 additions
and
72 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
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
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
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
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
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,10 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
end_of_line = lf | ||
max_line_length = null |
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,16 @@ | ||
# Added by Payload | ||
# Database connection string | ||
DATABASE_URI=file:./db/playground.db | ||
# Used to encrypt JWT tokens | ||
PAYLOAD_SECRET=5a9a296d283d03980a3110f3 | ||
# Used to format links and URLs | ||
PAYLOAD_PUBLIC_SERVER_URL=http://localhost:3000 | ||
NEXT_PUBLIC_SERVER_URL=http://localhost:3000 | ||
# Allow robots to index the site (optional) | ||
NEXT_PUBLIC_IS_LIVE= | ||
# Used to preview drafts | ||
PAYLOAD_PUBLIC_DRAFT_SECRET=demo-draft-secret | ||
NEXT_PRIVATE_DRAFT_SECRET=demo-draft-secret | ||
# Used to revalidate static pages | ||
REVALIDATION_KEY=demo-revalation-key | ||
NEXT_PRIVATE_REVALIDATION_KEY=demo-revalation-key |
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,12 @@ | ||
.tmp | ||
**/.git | ||
**/.hg | ||
**/.pnp.* | ||
**/.svn | ||
**/.yarn/** | ||
**/build | ||
**/dist/** | ||
**/node_modules | ||
**/temp | ||
playwright.config.ts | ||
jest.config.js |
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 @@ | ||
module.exports = { | ||
extends: 'next', | ||
root: true, | ||
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,11 @@ | ||
build | ||
dist / media | ||
node_modules | ||
.DS_Store | ||
.env | ||
.next | ||
.vercel | ||
|
||
# Payload default media upload directory | ||
public/media/ | ||
db/ |
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,14 @@ | ||
**/payload-types.ts | ||
.tmp | ||
**/.git | ||
**/.hg | ||
**/.pnp.* | ||
**/.svn | ||
**/.yarn/** | ||
**/build | ||
**/dist/** | ||
**/node_modules | ||
**/temp | ||
**/docs/** | ||
tsconfig.json | ||
|
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,24 @@ | ||
FROM node:18.8-alpine as base | ||
|
||
FROM base as builder | ||
|
||
WORKDIR /home/node/app | ||
COPY package*.json ./ | ||
|
||
COPY . . | ||
RUN yarn install | ||
RUN yarn build | ||
|
||
FROM base as runtime | ||
|
||
ENV NODE_ENV=production | ||
|
||
WORKDIR /home/node/app | ||
COPY package*.json ./ | ||
COPY yarn.lock ./ | ||
|
||
RUN yarn install --production | ||
|
||
EXPOSE 3000 | ||
|
||
CMD ["node", "dist/server.js"] |
Oops, something went wrong.