Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit ca7f7f7

Browse files
authored
revert: revert "Experimental Next.js 12 Output File Tracing (#2169)" (#2324)
This reverts commit e01571f.
1 parent 9facd15 commit ca7f7f7

File tree

81 files changed

+250
-1475
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+250
-1475
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
node_modules
44
/coverage.data
55
/coverage/
6-
junit.xml
76
examples/basic-next-serverless-app/build
87
.serverless
98
.next

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,6 @@ The fourth cache behaviour handles next API requests `api/*`.
544544
| build.cleanupDotNext | `boolean` | `true` | Whether to clean up `.next` directory before running the build step |
545545
| build.assetIgnorePatterns | `string[]` | `[]` | Glob patterns to ignore when discovering files to copy from _next/static, public, static directories. |
546546
| build.useV2Handler | `boolean` | `false` | **Experimental** Set this to true to use V2 handlers which starts to use genericized handlers. Note: this has the functionality of `separateApiLambda` and `disableOriginResponseHandler` so it should not be used together. Also, it is not completely optimized yet in terms of code size, but should still be performant. In the future, we will likely use this mode by default. |
547-
| build.outputFileTracing |`boolean` |`false` | **Experimental** Use the Next.js 12 [Output File Tracing](https://nextjs.org/docs/advanced-features/output-file-tracing) for copying required files into the Lambdas. This option doesn't set any `target` and instead relies on the default value, because `target` is now deprecated. |
548547
| cloudfront | `object` | `{}` | Inputs to be passed to [aws-cloudfront](https://github.com/serverless-components/aws-cloudfront) |
549548
| certificateArn | `string` | `` | Specific certificate ARN to use for CloudFront distribution. Helpful if you have a wildcard SSL cert you wish to use. This currently works only in tandem with the`domain`input. Please check [custom CloudFront configuration](https://github.com/serverless-nextjs/serverless-next.js#custom-cloudfront-configuration) for how to specify`certificate`without needing to use the`domain`input (note that doing so will override any certificate due to the domain input). |
550549
| domainType |`string` |`"both"` | Can be one of:`"apex"`- apex domain only, don't create a www subdomain.`"www"` - www domain only, don't create an apex subdomain.`"both"`- create both www and apex domains when either one is provided. |

jest.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ module.exports = {
2121
"/e2e-tests/",
2222
"/tests/",
2323
"/scripts/",
24-
".test_sls_next_output",
25-
"__tests__",
2624
"babel.config.js",
2725
"jest.config.js",
2826
"<rootDir>/packages/serverless-components/aws-s3",

packages/e2e-tests/next-app-experimental/next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/// <reference types="next" />
2+
/// <reference types="next/types/global" />
23
/// <reference types="next/image-types/global" />
34

45
// NOTE: This file should not be edited

packages/e2e-tests/next-app-experimental/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"homepage": "https://github.com/serverless-next.js/serverless-next.js",
2121
"dependencies": {
2222
"isomorphic-fetch": "3.0.0",
23-
"next": "12.0.8",
23+
"next": "11.1.3",
2424
"react": "17.0.2",
2525
"react-dom": "17.0.2"
2626
},

packages/e2e-tests/next-app-experimental/serverless.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ next-app-experimental:
88
foo: bar
99
build:
1010
useV2Handler: true
11-
outputFileTracing: true
1211
#separateApiLambda: false
1312
#disableOriginResponseHandler: true
1413
postBuildCommands: ["node scripts/post-build-test.js"]

packages/e2e-tests/next-app-experimental/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
"resolveJsonModule": true,
1818
"isolatedModules": true,
1919
"jsx": "preserve",
20-
"baseUrl": "src",
21-
"incremental": true
20+
"baseUrl": "src"
2221
},
2322
"exclude": [
2423
"node_modules",

0 commit comments

Comments
 (0)