-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tutorials): add Next.js x Serverless SQL DB tutorial
- Loading branch information
1 parent
eede0dc
commit 69cbbce
Showing
70 changed files
with
4,947 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
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,34 @@ | ||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
.yarn/install-state.gz | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts |
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,20 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
FROM node:20-alpine | ||
|
||
WORKDIR /usr/app | ||
COPY ./ ./ | ||
RUN npm install | ||
RUN npm run build | ||
|
||
#Web application configuration | ||
ENV PORT=8080 | ||
|
||
#Database configuration used for dynamically rendered data | ||
ENV PGHOST=localhost | ||
ENV PGPORT=5432 | ||
ENV PGDATABASE=database | ||
ENV PGUSER=user | ||
ENV PGPASSWORD=password | ||
|
||
CMD npm run start |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.