File tree Expand file tree Collapse file tree 11 files changed +14318
-11967
lines changed
Expand file tree Collapse file tree 11 files changed +14318
-11967
lines changed Original file line number Diff line number Diff line change 1+ name : Bug Report
2+ description : Create a report to help us improve
3+ title : ' [Bug]: '
4+ labels : ['type: bug']
5+ body :
6+ - type : markdown
7+ attributes :
8+ value : |
9+ Thanks for taking the time to fill out this bug report!
10+ - type : textarea
11+ id : steps-to-reproduce
12+ attributes :
13+ label : Steps to reproduce
14+ description : Steps to reproduce the behavior
15+ placeholder : |
16+ 1. Go to '...'
17+ 2. Click on '....'
18+ 3. Scroll down to '....'
19+ 4. See error
20+ validations :
21+ required : true
22+ - type : input
23+ id : link-to-reproduction
24+ attributes :
25+ label : A link to a reproduction repository
26+ description : The fastest way to describe your bug is to provide a reproduction repository.
27+ placeholder : https://github.com/project/link-to-your-reproduction-repo
28+ - type : markdown
29+ attributes :
30+ value : |
31+ Check out [CONTRIBUTING.md](https://github.com/netlify/netlify-plugin-nextjs/blob/main/CONTRIBUTING.md#what-is-a-reproducible-test-case) for advice on producing a reproduction repo.
32+ - type : checkboxes
33+ id : more-info
34+ attributes :
35+ label : More information about your build
36+ options :
37+ - label : I am building using the CLI
38+ - label : I am building using file-based configuration (netlify.toml)
39+ - type : dropdown
40+ id : which-os
41+ attributes :
42+ label : What OS are you using?
43+ description : (If you're using the CLI) What OS are you using?
44+ options :
45+ - Windows
46+ - Mac OS
47+ - Linux
48+ - Other
49+ - type : textarea
50+ id : netlify-toml
51+ attributes :
52+ label : Your `netlify.toml` file
53+ description : (If you're using file-based config) Please provide a copy of your `netlify.toml` file.
54+ render : shell
55+ validations :
56+ required : true
57+ - type : textarea
58+ id : logs
59+ attributes :
60+ label : Relevant log output (or link to your logs)
Original file line number Diff line number Diff line change 1+ name : Dependency License Scanning
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - chore/fossa-workflow # convenience branch for future fossa tweaks
8+
9+ defaults :
10+ run :
11+ shell : bash
12+
13+ jobs :
14+ fossa :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v2
19+ - name : Download fossa cli
20+ run : |-
21+ curl -L https://github.com/fossas/fossa-cli/releases/download/v1.1.2/fossa-cli_1.1.2_linux_amd64.tar.gz > fossa-cli.tar.gz
22+ tar -xvzf fossa-cli.tar.gz
23+ mkdir -p $HOME/.local/bin
24+ echo "$HOME/.local/bin" >> $GITHUB_PATH
25+ mv fossa $HOME/.local/bin/fossa
26+ - name : Fossa init
27+ run : fossa init
28+ - name : Set env
29+ run : echo "line_number=$(grep -n "project" .fossa.yml | cut -f1 -d:)" >> $GITHUB_ENV
30+ - name : Configuration
31+ run : |-
32+ sed -i "${line_number}s|.*| project: git@github.com:${GITHUB_REPOSITORY}.git|" .fossa.yml
33+ cat .fossa.yml
34+ - name : Upload dependencies
35+ run : fossa analyze --debug
36+ env :
37+ FOSSA_API_KEY : ${{ secrets.FOSSA_API_KEY }}
Original file line number Diff line number Diff line change 1+ name : release-please
2+ on :
3+ push :
4+ branches :
5+ - main
6+ jobs :
7+ release-please :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : navikt/github-app-token-generator@2d70c12368d1958155af4d283f9f21c9a2a8cb98
11+ id : get-token
12+ with :
13+ private-key : ${{ secrets.TOKENS_PRIVATE_KEY }}
14+ app-id : ${{ secrets.TOKENS_APP_ID }}
15+ - uses : GoogleCloudPlatform/release-please-action@v2
16+ with :
17+ token : ${{ steps.get-token.outputs.token }}
18+ release-type : node
19+ package-name : ' @netlify/plugin-nextjs'
Original file line number Diff line number Diff line change 1212 strategy :
1313 matrix :
1414 os : [ubuntu-latest, macOS-latest, windows-latest]
15- node-version : ['*']
15+ node-version : [12, '*']
1616 exclude :
1717 - os : macOS-latest
1818 node-version : 12
Original file line number Diff line number Diff line change 1+ # Contributions
2+
3+ 🎉 Thanks for considering contributing to this project! 🎉
4+
5+ These guidelines will help you send a pull request.
6+
7+ If you're submitting an issue instead, please skip this document.
8+
9+ If your pull request is related to a typo or the documentation being unclear, please click on the relevant page's ` Edit `
10+ button (pencil icon) and directly suggest a correction instead.
11+
12+ This project was made with ❤️. The simplest way to give back is by starring and sharing it online.
13+
14+ Everyone is welcome regardless of personal background. We enforce a [ Code of conduct] ( CODE_OF_CONDUCT.md ) in order to
15+ promote a positive and inclusive environment.
16+
17+ ## Development process
18+
19+ First fork and clone the repository. If you're not sure how to do this, please watch
20+ [ these videos] ( https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github ) .
21+
22+ Run:
23+
24+ ``` bash
25+ npm install
26+ ```
27+
28+ Make sure everything is correctly setup with:
29+
30+ ``` bash
31+ npm test
32+ ```
33+
34+ ## How to write commit messages
35+
36+ We use [ Conventional Commit messages] ( https://www.conventionalcommits.org/ ) to automate version management.
37+
38+ Most common commit message prefixes are:
39+
40+ * ` fix: ` which represents bug fixes, and generate a patch release.
41+ * ` feat: ` which represents a new feature, and generate a minor release.
42+ * ` feat!: ` , ` fix!: ` or ` refactor!: ` and generate a major release.
43+
44+ ## Releasing
45+
46+ 1 . Merge the release PR
47+ 2 . Run ` npm publish `
Original file line number Diff line number Diff line change 1- # Essential Next.js (Experimental )
1+ ![ Next.js on Netlify Build Plugin ] ( next-on-netlify.png )
22
3- _ Experimental plugin for Next.js applications on Netlify _
3+ # Essential Next.js Build Plugin (beta)
44
5- :warning : This plugin is an alpha for testing purposes only. It is not yet stable and should not be used for production sites.
65
7- ## Installing the alpha
6+ :warning : This is the beta version of the Essential Next.js plugin. For the stable version, see [ Essential Next.js plugin v3] ( https://github.com/netlify/netlify-plugin-nextjs/tree/v3#readme ) :warning :
7+
8+ <p align =" center " >
9+ <a aria-label =" npm version " href =" https://www.npmjs.com/package/@netlify/plugin-nextjs " >
10+ <img alt="" src="https://img.shields.io/npm/v/@netlify/plugin-nextjs">
11+ </a >
12+ <a aria-label =" MIT License " href =" https://img.shields.io/npm/l/@netlify/plugin-nextjs " >
13+ <img alt="" src="https://img.shields.io/npm/l/@netlify/plugin-nextjs">
14+ </a >
15+ </p >
16+
17+
18+ ## Installing the beta
19+
820
9- - Remove the existing Essential Next.js plugin (` @netlify/plugin-nextjs ` ). See the instructions to [ uninstall the plugin] ( https://ntl.fyi/remove-plugin )
1021- Install the module:
1122``` shell
12- npm install -D @netlify/plugin-nextjs-experimental
23+ npm install -D @netlify/plugin-nextjs@beta
1324```
14- - Change the ` publish ` directory to ` .next ` and add the plugin to ` netlify.toml ` :
25+ - Change the ` publish ` directory to ` .next ` and add the plugin to ` netlify.toml ` if not already installed :
1526``` toml
1627[build ]
1728publish = " .next"
1829
1930[[plugins ]]
20- package = " @netlify/plugin-nextjs-experimental "
31+ package = " @netlify/plugin-nextjs"
2132```
33+
34+ If you previously set ` target: "serverless" ` in your ` next.config.js ` this is no longer needed and can be removed.
Original file line number Diff line number Diff line change 1+ // This is just for jest
2+ module . exports = {
3+ presets : [ [ '@babel/preset-env' , { targets : { node : 'current' } } ] ] ,
4+ }
You can’t perform that action at this time.
0 commit comments