Skip to content

Commit

Permalink
Merge branch 'canary' into fix/gip-aspath
Browse files Browse the repository at this point in the history
  • Loading branch information
kaykdm committed Jan 6, 2021
2 parents ad3b35d + 51f2a53 commit 6fa33b8
Show file tree
Hide file tree
Showing 361 changed files with 10,801 additions and 3,228 deletions.
42 changes: 0 additions & 42 deletions .github/ISSUE_TEMPLATE/1.Bug_report.md

This file was deleted.

61 changes: 61 additions & 0 deletions .github/ISSUE_TEMPLATE/1.bug_report.yml
@@ -0,0 +1,61 @@
name: Bug Report
about: Create a bug report for the Next.js core
title: ''
labels: 'template: bug'
issue_body: true
inputs:
- type: description
attributes:
value: Thanks for taking the time to file a bug report! Please fill out this form as completely as possible.
- type: description
attributes:
value: If you leave out sections there is a high likelihood it will be moved to the GitHub Discussions "Help" section.
- type: input
attributes:
label: What version of Next.js are you using?
description: 'For example: 10.0.1'
required: true
- type: input
attributes:
label: What version of Node.js are you using?
description: 'For example: 12.0.0'
required: true
- type: input
attributes:
label: What browser are you using?
description: 'For example: Chrome, Safari'
required: true
- type: input
attributes:
label: What operating system are you using?
description: 'For example: macOS, Windows'
required: true
- type: input
attributes:
label: How are you deploying your application?
description: 'For example: next start, next export, Vercel, Other platform'
required: true
- type: textarea
attributes:
label: Describe the Bug
description: A clear and concise description of what the bug is.
required: true
- type: textarea
attributes:
label: Expected Behavior
description: A clear and concise description of what you expected to happen.
required: true
- type: textarea
attributes:
label: To Reproduce
description: Steps to reproduce the behavior, please provide a clear code snippets that always reproduces the issue or a GitHub repository. Screenshots can be provided in the issue body below.
required: true
- type: description
attributes:
value: Before posting the issue go through the steps you've written down to make sure the steps provided are detailed and clear.
- type: description
attributes:
value: Contributors should be able to follow the steps provided in order to reproduce the bug.
- type: description
attributes:
value: These steps are used to add integration tests to ensure the same issue does not happen again. Thanks in advance!
25 changes: 0 additions & 25 deletions .github/ISSUE_TEMPLATE/2.Feature_request.md

This file was deleted.

66 changes: 66 additions & 0 deletions .github/ISSUE_TEMPLATE/2.example_bug_report.yml
@@ -0,0 +1,66 @@
name: Example Bug Report
about: Create a bug report for the examples
title: ''
labels: 'type: example,template: bug'
issue_body: true
inputs:
- type: description
attributes:
value: Thanks for taking the time to file a examples bug report! Please fill out this form as completely as possible.
- type: description
attributes:
value: If you leave out sections there is a high likelihood it will be moved to the GitHub Discussions "Help" section.
- type: input
attributes:
label: What example does this report relate to?
description: 'For example: with-styled-components'
required: true
- type: input
attributes:
label: What version of Next.js are you using?
description: 'For example: 10.0.1'
required: true
- type: input
attributes:
label: What version of Node.js are you using?
description: 'For example: 12.0.0'
required: true
- type: input
attributes:
label: What browser are you using?
description: 'For example: Chrome, Safari'
required: true
- type: input
attributes:
label: What operating system are you using?
description: 'For example: macOS, Windows'
required: true
- type: input
attributes:
label: How are you deploying your application?
description: 'For example: next start, next export, Vercel, Other platform'
required: true
- type: textarea
attributes:
label: Describe the Bug
description: A clear and concise description of what the bug is.
required: true
- type: textarea
attributes:
label: Expected Behavior
description: A clear and concise description of what you expected to happen.
required: true
- type: textarea
attributes:
label: To Reproduce
description: Steps to reproduce the behavior, please provide a clear code snippets that always reproduces the issue or a GitHub repository. Screenshots can be provided in the issue body below.
required: true
- type: description
attributes:
value: Before posting the issue go through the steps you've written down to make sure the steps provided are detailed and clear.
- type: description
attributes:
value: Contributors should be able to follow the steps provided in order to reproduce the bug.
- type: description
attributes:
value: Thanks in advance!
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/3.feature_request.yml
@@ -0,0 +1,27 @@
name: Feature Request
about: Create a feature request for the Next.js core
title: ''
labels: 'template: story'
issue_body: true
inputs:
- type: description
attributes:
value: Thanks for taking the time to file a feature request! Please fill out this form as completely as possible.
- type: description
attributes:
value: 'Feature requests will be converted to the GitHub Discussions "Ideas" section.'
- type: textarea
attributes:
label: Describe the feature you'd like to request
description: A clear and concise description of what you want and what your use case is.
required: true
- type: textarea
attributes:
label: Describe the solution you'd like
description: A clear and concise description of what you want to happen.
required: true
- type: textarea
attributes:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered.
required: true
13 changes: 3 additions & 10 deletions .github/workflows/build_test_deploy.yml
Expand Up @@ -115,20 +115,13 @@ jobs:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: '--unhandled-rejections=strict'
YARN_COMPRESSION_LEVEL: '0'
steps:
- uses: actions/checkout@v2

- run: yarn install --frozen-lockfile --check-files

- run: |
mkdir -p ./e2e-tests/next-pnp
cp -r ./examples/with-typescript/. ./e2e-tests/next-pnp
cd ./e2e-tests/next-pnp
touch yarn.lock
yarn set version berry
yarn config set pnpFallbackMode none
yarn link --all --private ../..
yarn build
- run: bash ./test-pnp.sh

testsPass:
name: thank you, next
Expand All @@ -153,7 +146,7 @@ jobs:
- run: cat package.json | jq '.resolutions."react-dom" = "^17.0.1"' > package.json.tmp && mv package.json.tmp package.json
- run: yarn install --check-files
- run: yarn list webpack react react-dom
- run: xvfb-run node run-tests.js test/integration/link-ref/test/index.test.js test/integration/production/test/index.test.js test/integration/basic/test/index.test.js test/integration/async-modules/test/index.test.js test/integration/font-optimization/test/index.test.js test/acceptance/*.test.js
- run: xvfb-run node run-tests.js test/integration/{link-ref,production,basic,async-modules,font-optimization,ssr-ctx}/test/index.test.js test/acceptance/*.test.js

testFirefox:
name: Test Firefox (production)
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -25,6 +25,7 @@ test/**/next-env.d.ts

# Editors
**/.idea
**/.#*

# examples
examples/**/out
Expand Down
3 changes: 2 additions & 1 deletion .vscode/launch.json
Expand Up @@ -22,7 +22,8 @@
"runtimeExecutable": "yarn",
"runtimeArgs": ["run", "debug", "build", "test/integration/basic"],
"skipFiles": ["<node_internals>/**"],
"port": 9229
"port": 9229,
"outFiles": ["${workspaceFolder}/packages/next/dist/**/*"]
},
{
"name": "Launch app production",
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Expand Up @@ -4,5 +4,6 @@
"javascriptreact",
{ "language": "typescript", "autoFix": true },
{ "language": "typescriptreact", "autoFix": true }
]
],
"debug.javascript.unmapMissingSources": true
}
19 changes: 15 additions & 4 deletions azure-pipelines.yml
Expand Up @@ -6,10 +6,10 @@ trigger:
include:
- '*'
exclude:
- bench/*
- docs/*
- errors/*
- examples/*
- bench
- docs
- errors
- examples
# Do not run Azure on `canary`, `master`, or release tags. This unnecessarily
# increases the backlog, and the change was already tested on the PR.
branches:
Expand All @@ -20,6 +20,17 @@ trigger:
- master
- refs/tags/*

pr:
# Do not run Azure CI for docs-only/example-only changes:
paths:
include:
- '*'
exclude:
- bench
- docs
- errors
- examples

variables:
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
NEXT_TELEMETRY_DISABLED: '1'
Expand Down
47 changes: 0 additions & 47 deletions docs/api-reference/next.config.js/build-target.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/api-reference/next.config.js/compression.md
Expand Up @@ -4,7 +4,7 @@ description: Next.js provides gzip compression to compress rendered content and

# Compression

Next.js provides [**gzip**](https://tools.ietf.org/html/rfc6713#section-3) compression to compress rendered content and static files. Compression only works with the [`server` target](/docs/api-reference/next.config.js/build-target.md#server-target). In general you will want to enable compression on a HTTP proxy like [nginx](https://www.nginx.com/), to offload load from the `Node.js` process.
Next.js provides [**gzip**](https://tools.ietf.org/html/rfc6713#section-3) compression to compress rendered content and static files. In general you will want to enable compression on a HTTP proxy like [nginx](https://www.nginx.com/), to offload load from the `Node.js` process.

To disable **compression**, open `next.config.js` and disable the `compress` config:

Expand Down

0 comments on commit 6fa33b8

Please sign in to comment.