Skip to content

Commit 7efff75

Browse files
committed
feat(pages-starter): add Pages Router-based starter
Issue #601
1 parent dd03912 commit 7efff75

37 files changed

+1072
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ body:
1919
- next-drupal (NPM package)
2020
- basic-starter
2121
- graphql-starter
22+
- pages-starter
2223
- example-auth
2324
- example-blog
2425
- example-client

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ body:
1414
- next-drupal (NPM package)
1515
- basic-starter
1616
- graphql-starter
17+
- pages-starter
1718
- example-auth
1819
- example-blog
1920
- example-client

.github/ISSUE_TEMPLATE/question.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ body:
1414
- next-drupal (NPM package)
1515
- basic-starter
1616
- graphql-starter
17+
- pages-starter
1718
- example-auth
1819
- example-blog
1920
- example-client

.github/pull_request_template.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ This pull request is for: (mark with an "x")
55
- [ ] `packages/next-drupal`
66
- [ ] `starters/basic-starter`
77
- [ ] `starters/graphql-starter`
8+
- [ ] `starters/pages-starter`
89
- [ ] Other
910

1011
GitHub Issue: #

MAINTAINING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ The code in the examples repos do not strictly require a versioned release since
168168
169169
- [basic-starter](https://github.com/chapter-three/next-drupal-basic-starter/releases)
170170
- [graphql-starter](https://github.com/chapter-three/next-drupal-graphql-starter/releases)
171+
- [pages-starter](https://github.com/chapter-three/next-drupal-pages-starter/releases)
171172
172173
And then:
173174
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# See https://next-drupal.org/docs/environment-variables
2+
3+
# Required
4+
NEXT_PUBLIC_DRUPAL_BASE_URL=https://site.example.com
5+
NEXT_IMAGE_DOMAIN=site.example.com
6+
7+
# Authentication
8+
DRUPAL_CLIENT_ID=Retrieve this from /admin/config/services/consumer
9+
DRUPAL_CLIENT_SECRET=Retrieve this from /admin/config/services/consumer
10+
11+
# Required for On-demand Revalidation
12+
DRUPAL_REVALIDATE_SECRET=Retrieve this from /admin/config/services/next
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "next/core-web-vitals",
3+
"root": true
4+
}

starters/pages-starter/.gitignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
.yarn/install-state.gz
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/out/
15+
16+
# production
17+
/build
18+
19+
# misc
20+
.DS_Store
21+
*.pem
22+
23+
# IDE files
24+
/.idea
25+
/.vscode
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
32+
# local env files
33+
.env*.local
34+
35+
# vercel
36+
.vercel
37+
38+
# typescript
39+
*.tsbuildinfo
40+
next-env.d.ts

starters/pages-starter/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v20
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Ignore everything.
2+
/*
3+
4+
# Format most files in the root directory.
5+
!/*.js
6+
!/*.ts
7+
!/*.md
8+
!/*.json
9+
# But ignore some.
10+
/package.json
11+
/package-lock.json
12+
/CHANGELOG.md
13+
14+
# Don't ignore these nested directories.
15+
!/app
16+
!/components
17+
!/lib
18+
!/pages

0 commit comments

Comments
 (0)