update deps, set max_old_space_size for github builds too
This commit is contained in:
parent
99c0c7339b
commit
def5813a43
3 changed files with 15 additions and 8 deletions
12
package.json
12
package.json
|
|
@ -36,10 +36,10 @@
|
||||||
"homepage": "https://github.com/lone-cloud/next-deploy#readme",
|
"homepage": "https://github.com/lone-cloud/next-deploy#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@serverless/core": "^1.1.2",
|
"@serverless/core": "^1.1.2",
|
||||||
"@zeit/node-file-trace": "^0.8.1",
|
"@zeit/node-file-trace": "^0.8.2",
|
||||||
"ansi-escapes": "^4.3.1",
|
"ansi-escapes": "^4.3.1",
|
||||||
"archiver": "^5.0.0",
|
"archiver": "^5.0.0",
|
||||||
"aws-sdk": "^2.723.0",
|
"aws-sdk": "^2.724.0",
|
||||||
"chalk": "^4.1.0",
|
"chalk": "^4.1.0",
|
||||||
"execa": "^4.0.3",
|
"execa": "^4.0.3",
|
||||||
"figures": "^3.2.0",
|
"figures": "^3.2.0",
|
||||||
|
|
@ -50,17 +50,17 @@
|
||||||
"klaw-sync": "^6.0.0",
|
"klaw-sync": "^6.0.0",
|
||||||
"mime-types": "^2.1.27",
|
"mime-types": "^2.1.27",
|
||||||
"minimist": "^1.2.5",
|
"minimist": "^1.2.5",
|
||||||
"next": "^9.5.0",
|
"next": "^9.5.1",
|
||||||
"path-to-regexp": "^6.1.0",
|
"path-to-regexp": "^6.1.0",
|
||||||
"prettyoutput": "^1.2.0",
|
"prettyoutput": "^1.2.0",
|
||||||
"ramda": "^0.27.0",
|
"ramda": "^0.27.1",
|
||||||
"regex-parser": "^2.2.10",
|
"regex-parser": "^2.2.10",
|
||||||
"s3-stream-upload": "^2.0.2",
|
"s3-stream-upload": "^2.0.2",
|
||||||
"strip-ansi": "^6.0.0"
|
"strip-ansi": "^6.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
||||||
"@babel/preset-env": "^7.10.4",
|
"@babel/preset-env": "^7.11.0",
|
||||||
"@babel/preset-typescript": "^7.10.4",
|
"@babel/preset-typescript": "^7.10.4",
|
||||||
"@types/archiver": "^3.1.0",
|
"@types/archiver": "^3.1.0",
|
||||||
"@types/aws-lambda": "^8.10.59",
|
"@types/aws-lambda": "^8.10.59",
|
||||||
|
|
@ -72,7 +72,7 @@
|
||||||
"@types/mime-types": "^2.1.0",
|
"@types/mime-types": "^2.1.0",
|
||||||
"@types/node": "^14.0.27",
|
"@types/node": "^14.0.27",
|
||||||
"@types/path-to-regexp": "^1.7.0",
|
"@types/path-to-regexp": "^1.7.0",
|
||||||
"@types/ramda": "^0.27.13",
|
"@types/ramda": "^0.27.14",
|
||||||
"@types/react": "^16.9.43",
|
"@types/react": "^16.9.43",
|
||||||
"@types/react-dom": "^16.9.8",
|
"@types/react-dom": "^16.9.8",
|
||||||
"@types/strip-ansi": "^5.2.1",
|
"@types/strip-ansi": "^5.2.1",
|
||||||
|
|
|
||||||
|
|
@ -214,14 +214,18 @@ const handler = ({
|
||||||
|
|
||||||
const responsePromise = new Promise<CloudFrontResultResponse>((resolve) => {
|
const responsePromise = new Promise<CloudFrontResultResponse>((resolve) => {
|
||||||
res.end = (text: any) => {
|
res.end = (text: any) => {
|
||||||
|
if (res.finished === true) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
res.finished = true;
|
||||||
|
|
||||||
if (text) res.write(text);
|
if (text) res.write(text);
|
||||||
|
|
||||||
if (!res.statusCode) {
|
if (!res.statusCode) {
|
||||||
res.statusCode = 200;
|
res.statusCode = 200;
|
||||||
}
|
}
|
||||||
|
|
||||||
res.finished = true;
|
|
||||||
|
|
||||||
if (response.body) {
|
if (response.body) {
|
||||||
response.bodyEncoding = 'base64';
|
response.bodyEncoding = 'base64';
|
||||||
response.body = gz
|
response.body = gz
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,9 @@ const build = async (
|
||||||
// run the build
|
// run the build
|
||||||
let subprocess = execa(cmd, args, {
|
let subprocess = execa(cmd, args, {
|
||||||
cwd,
|
cwd,
|
||||||
|
env: {
|
||||||
|
NODE_OPTIONS: '--max_old_space_size=3000',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
if (debug && subprocess.stdout) {
|
if (debug && subprocess.stdout) {
|
||||||
|
|
|
||||||
Reference in a new issue