Resocio / netlify-plugin-resoc

MIT License
2 stars 0 forks source link

Netlify builds fail with "Failed to upload file: resoc-open-graph-image" #1

Open dandenney opened 2 years ago

dandenney commented 2 years ago

Describe the bug With a fork of this repo, the builds in Netlify will not complete. The build fails with Failed to upload file: resoc-open-graph-image. I'm really looking forward to using this and hope to be able to move to the dynamic version via the exported script. Thank you for any help you can give and I'll help any way that I can.

Steps to reproduce

  1. Fork the repo
  2. Add a project in Netlify

Expected behavior Build would pass and the social images would be created on Netlify.

Configuration Full log

7:49:23 PM: Build ready to start
7:49:25 PM: build-image version: d2c6dbeac570350a387d832f64bc980dc964ad65 (focal)
7:49:25 PM: build-image tag: v4.8.0
7:49:25 PM: buildbot version: e552b142336b2b1222a93a4fd4cbed0019c77b46
7:49:25 PM: Fetching cached dependencies
7:49:25 PM: Failed to fetch cache, continuing with build
7:49:25 PM: Starting to prepare the repo for build
7:49:25 PM: No cached dependencies found. Cloning fresh repo
7:49:25 PM: git clone https://github.com/dandenney/demo-nextjs-on-netlify
7:49:26 PM: Preparing Git Reference refs/heads/master
7:49:26 PM: Parsing package.json dependencies
7:49:27 PM: Starting build script
7:49:27 PM: Installing dependencies
7:49:27 PM: Python version set to 2.7
7:49:28 PM: v16.14.2 is already installed.
7:49:28 PM: Now using node v16.14.2 (npm v8.5.0)
7:49:28 PM: Started restoring cached build plugins
7:49:28 PM: Finished restoring cached build plugins
7:49:28 PM: Attempting ruby version 2.7.2, read from environment
7:49:29 PM: Using ruby version 2.7.2
7:49:30 PM: Using PHP version 8.0
7:49:30 PM: Started restoring cached yarn cache
7:49:30 PM: Finished restoring cached yarn cache
7:49:30 PM: No yarn workspaces detected
7:49:30 PM: Started restoring cached node modules
7:49:30 PM: Finished restoring cached node modules
7:49:31 PM: Installing NPM modules using Yarn version 1.22.10
7:49:31 PM: yarn install v1.22.10
7:49:31 PM: [1/4] Resolving packages...
7:49:32 PM: [2/4] Fetching packages...
7:49:43 PM: info @next/swc-darwin-arm64@11.1.2: The platform "linux" is incompatible with this module.
7:49:43 PM: info "@next/swc-darwin-arm64@11.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
7:49:43 PM: info @next/swc-darwin-arm64@11.1.2: The CPU architecture "x64" is incompatible with this module.
7:49:43 PM: info @next/swc-darwin-x64@11.1.2: The platform "linux" is incompatible with this module.
7:49:43 PM: info "@next/swc-darwin-x64@11.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
7:49:43 PM: info @next/swc-win32-x64-msvc@11.1.2: The platform "linux" is incompatible with this module.
7:49:43 PM: info "@next/swc-win32-x64-msvc@11.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
7:49:43 PM: info fsevents@2.3.2: The platform "linux" is incompatible with this module.
7:49:43 PM: info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
7:49:43 PM: [3/4] Linking dependencies...
7:49:43 PM: warning "next > styled-jsx > @babel/plugin-syntax-jsx@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
7:49:43 PM: warning " > @resoc/core@0.6.0" has unmet peer dependency "axios@^0.21.1".
7:49:43 PM: warning " > @resoc/core@0.6.0" has unmet peer dependency "mustache@^4.2.0".
7:49:43 PM: warning "@resoc/netlify-plugin-social-image > @resoc/core@0.5.0" has unmet peer dependency "axios@^0.21.1".
7:49:43 PM: warning "@resoc/netlify-plugin-social-image > @resoc/core@0.5.0" has unmet peer dependency "mustache@^4.2.0".
7:49:43 PM: warning "eslint-config-next > @typescript-eslint/parser > @typescript-eslint/typescript-estree > tsutils@3.21.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
7:49:47 PM: [4/4] Building fresh packages...
7:49:47 PM: Done in 15.77s.
7:49:47 PM: NPM modules installed using Yarn
7:49:47 PM: Started restoring cached go cache
7:49:47 PM: Finished restoring cached go cache
7:49:47 PM: go version go1.16.5 linux/amd64
7:49:47 PM: go version go1.16.5 linux/amd64
7:49:47 PM: Installing missing commands
7:49:47 PM: Verify run directory
7:49:49 PM: ​
7:49:49 PM: ────────────────────────────────────────────────────────────────
7:49:49 PM:   Netlify Build                                                 
7:49:49 PM: ────────────────────────────────────────────────────────────────
7:49:49 PM: ​
7:49:49 PM: ❯ Version
7:49:49 PM:   @netlify/build 26.5.2
7:49:49 PM: ​
7:49:49 PM: ❯ Flags
7:49:49 PM:   baseRelDir: true
7:49:49 PM:   buildId: 625e071396381c12b465e861
7:49:49 PM:   deployId: 625e071396381c12b465e863
7:49:49 PM: ​
7:49:49 PM: ❯ Current directory
7:49:49 PM:   /opt/build/repo
7:49:49 PM: ​
7:49:49 PM: ❯ Config file
7:49:49 PM:   /opt/build/repo/netlify.toml
7:49:49 PM: ​
7:49:49 PM: ❯ Context
7:49:49 PM:   production
7:49:49 PM: ​
7:49:49 PM: ❯ Installing plugins
7:49:49 PM:    - @netlify/plugin-nextjs@4.3.2
7:50:03 PM: ​
7:50:03 PM: ❯ Loading plugins
7:50:03 PM:    - @netlify/plugin-nextjs@4.3.2 from Netlify app
7:50:03 PM:    - @resoc/netlify-plugin-social-image@0.0.3 from netlify.toml and package.json
7:50:05 PM: ​
7:50:05 PM: ────────────────────────────────────────────────────────────────
7:50:05 PM:   1. @netlify/plugin-nextjs (onPreBuild event)                  
7:50:05 PM: ────────────────────────────────────────────────────────────────
7:50:05 PM: ​
7:50:05 PM: No Next.js cache to restore.
7:50:05 PM: Netlify configuration property "build.environment.NEXT_PRIVATE_TARGET" value changed.
7:50:05 PM: ​
7:50:05 PM: (@netlify/plugin-nextjs onPreBuild completed in 25ms)
7:50:05 PM: ​
7:50:05 PM: ────────────────────────────────────────────────────────────────
7:50:05 PM:   2. Build command from Netlify app                             
7:50:05 PM: ────────────────────────────────────────────────────────────────
7:50:05 PM: ​
7:50:05 PM: $ yarn build
7:50:05 PM: yarn run v1.22.10
7:50:05 PM: $ next build
7:50:06 PM: info  - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
7:50:06 PM: warn  - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
7:50:06 PM: Browserslist: caniuse-lite is outdated. Please run:
7:50:06 PM: npx browserslist@latest --update-db
7:50:06 PM: Why you should do it regularly:
7:50:06 PM: https://github.com/browserslist/browserslist#browsers-data-updating
7:50:06 PM: info  - Checking validity of types...
7:50:07 PM: Browserslist: caniuse-lite is outdated. Please run:
7:50:07 PM: npx browserslist@latest --update-db
7:50:07 PM: Why you should do it regularly:
7:50:07 PM: https://github.com/browserslist/browserslist#browsers-data-updating
7:50:09 PM: info  - Creating an optimized production build...
7:50:09 PM: Browserslist: caniuse-lite is outdated. Please run:
7:50:09 PM: npx browserslist@latest --update-db
7:50:09 PM: Why you should do it regularly:
7:50:09 PM: https://github.com/browserslist/browserslist#browsers-data-updating
7:50:23 PM: info  - Compiled successfully
7:50:23 PM: info  - Collecting page data...
7:50:23 PM: info  - Generating static pages (0/3)
7:50:24 PM: info  - Generating static pages (3/3)
7:50:24 PM: info  - Finalizing page optimization...
7:50:24 PM: Page                                Size     First Load JS
7:50:24 PM: ┌ ● /                               825 B          77.3 kB
7:50:24 PM: ├   └ css/00b990c35171ab5c981c.css  678 B
7:50:24 PM: ├   /_app                           0 B            76.5 kB
7:50:24 PM: ├ ○ /404                            194 B          76.7 kB
7:50:24 PM: └ λ /api/hello                      0 B            76.5 kB
7:50:24 PM: + First Load JS shared by all       76.5 kB
7:50:24 PM:   ├ chunks/framework.895f06.js      42 kB
7:50:24 PM:   ├ chunks/main.c4f254.js           23.6 kB
7:50:24 PM:   ├ chunks/pages/_app.a689c3.js     10.1 kB
7:50:24 PM:   ├ chunks/webpack.fb7614.js        770 B
7:50:24 PM:   └ css/8472b9288e22193be8c7.css    197 B
7:50:24 PM: λ  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
7:50:24 PM: ○  (Static)  automatically rendered as static HTML (uses no initial props)
7:50:24 PM: ●  (SSG)     automatically generated as static HTML + JSON (uses getStaticProps)
7:50:24 PM:    (ISR)     incremental static regeneration (uses revalidate in getStaticProps)
7:50:24 PM: Done in 19.19s.
7:50:24 PM: ​
7:50:24 PM: (build.command completed in 19.3s)
7:50:24 PM: ​
7:50:24 PM: ────────────────────────────────────────────────────────────────
7:50:24 PM:   3. @netlify/plugin-nextjs (onBuild event)                     
7:50:24 PM: ────────────────────────────────────────────────────────────────
7:50:24 PM: ​
7:50:24 PM: Patching /opt/build/repo/node_modules/next/dist/server/next-server.js
7:50:24 PM: Done
7:50:24 PM: Moving static page files to serve from CDN...
7:50:24 PM: Moved 2 files
7:50:24 PM: Netlify configuration property "redirects" value changed to [
7:50:24 PM:   { from: '/_next/static/*', to: '/static/:splat', status: 200 },
7:50:24 PM:   {
7:50:24 PM:     from: '/_next/image*',
7:50:24 PM:     query: { url: ':url', w: ':width', q: ':quality' },
7:50:24 PM:     to: '/_ipx/w_:width,q_:quality/:url',
7:50:24 PM:     status: 301
7:50:24 PM:   },
7:50:24 PM:   { from: '/_ipx/*', to: '/.netlify/builders/_ipx', status: 200 },
7:50:24 PM:   { from: '/cache/*', to: '/404.html', status: 404, force: true },
7:50:24 PM:   { from: '/server/*', to: '/404.html', status: 404, force: true },
7:50:24 PM:   { from: '/serverless/*', to: '/404.html', status: 404, force: true },
7:50:24 PM:   { from: '/trace', to: '/404.html', status: 404, force: true },
7:50:24 PM:   { from: '/traces', to: '/404.html', status: 404, force: true },
7:50:24 PM:   {
7:50:24 PM:     from: '/routes-manifest.json',
7:50:24 PM:     to: '/404.html',
7:50:24 PM:     status: 404,
7:50:24 PM:     force: true
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/build-manifest.json',
7:50:24 PM:     to: '/404.html',
7:50:24 PM:     status: 404,
7:50:24 PM:     force: true
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/prerender-manifest.json',
7:50:24 PM:     to: '/404.html',
7:50:24 PM:     status: 404,
7:50:24 PM:     force: true
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/react-loadable-manifest.json',
7:50:24 PM:     to: '/404.html',
7:50:24 PM:     status: 404,
7:50:24 PM:     force: true
7:50:24 PM:   },
7:50:24 PM:   { from: '/BUILD_ID', to: '/404.html', status: 404, force: true },
7:50:24 PM:   {
7:50:24 PM:     from: '/api',
7:50:24 PM:     to: '/.netlify/functions/___netlify-handler',
7:50:24 PM:     status: 200
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/api/*',
7:50:24 PM:     to: '/.netlify/functions/___netlify-handler',
7:50:24 PM:     status: 200
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/favicon.ico',
7:50:24 PM:     to: '/favicon.ico',
7:50:24 PM:     conditions: { Cookie: [Array] },
7:50:24 PM:     status: 200
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/vercel.svg',
7:50:24 PM:     to: '/vercel.svg',
7:50:24 PM:     conditions: { Cookie: [Array] },
7:50:24 PM:     status: 200
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/*',
7:50:24 PM:     to: '/.netlify/functions/___netlify-handler',
7:50:24 PM:     status: 200,
7:50:24 PM:     conditions: { Cookie: [Array] },
7:50:24 PM:     force: true
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/*',
7:50:24 PM:     to: '/.netlify/functions/___netlify-handler',
7:50:24 PM:     status: 200
7:50:24 PM:   }
7:50:24 PM: ].
7:50:24 PM: ​
7:50:24 PM: (@netlify/plugin-nextjs onBuild completed in 58ms)
7:50:24 PM: ​
7:50:24 PM: ────────────────────────────────────────────────────────────────
7:50:24 PM:   4. @resoc/netlify-plugin-social-image (onBuild event)         
7:50:24 PM: ────────────────────────────────────────────────────────────────
7:50:24 PM: ​
7:50:24 PM: Copy Resoc Netlify Function to netlify/functions
7:50:24 PM: Write Netlify Function configuration to netlify/functions/resoc-open-graph-image.json
7:50:24 PM: Set Netlify Function configuration
7:50:24 PM: Netlify configuration property "redirects" value changed to [
7:50:24 PM:   {
7:50:24 PM:     from: '/_next/static/*',
7:50:24 PM:     query: {},
7:50:24 PM:     to: '/static/:splat',
7:50:24 PM:     status: 200,
7:50:24 PM:     force: false,
7:50:24 PM:     conditions: {},
7:50:24 PM:     headers: {}
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/_next/image*',
7:50:24 PM:     query: { url: ':url', w: ':width', q: ':quality' },
7:50:24 PM:     to: '/_ipx/w_:width,q_:quality/:url',
7:50:24 PM:     status: 301,
7:50:24 PM:     force: false,
7:50:24 PM:     conditions: {},
7:50:24 PM:     headers: {}
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/_ipx/*',
7:50:24 PM:     query: {},
7:50:24 PM:     to: '/.netlify/builders/_ipx',
7:50:24 PM:     status: 200,
7:50:24 PM:     force: false,
7:50:24 PM:     conditions: {},
7:50:24 PM:     headers: {}
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/cache/*',
7:50:24 PM:     query: {},
7:50:24 PM:     to: '/404.html',
7:50:24 PM:     status: 404,
7:50:24 PM:     force: true,
7:50:24 PM:     conditions: {},
7:50:24 PM:     headers: {}
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/server/*',
7:50:24 PM:     query: {},
7:50:24 PM:     to: '/404.html',
7:50:24 PM:     status: 404,
7:50:24 PM:     force: true,
7:50:24 PM:     conditions: {},
7:50:24 PM:     headers: {}
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/serverless/*',
7:50:24 PM:     query: {},
7:50:24 PM:     to: '/404.html',
7:50:24 PM:     status: 404,
7:50:24 PM:     force: true,
7:50:24 PM:     conditions: {},
7:50:24 PM:     headers: {}
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/trace',
7:50:24 PM:     query: {},
7:50:24 PM:     to: '/404.html',
7:50:24 PM:     status: 404,
7:50:24 PM:     force: true,
7:50:24 PM:     conditions: {},
7:50:24 PM:     headers: {}
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/traces',
7:50:24 PM:     query: {},
7:50:24 PM:     to: '/404.html',
7:50:24 PM:     status: 404,
7:50:24 PM:     force: true,
7:50:24 PM:     conditions: {},
7:50:24 PM:     headers: {}
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/routes-manifest.json',
7:50:24 PM:     query: {},
7:50:24 PM:     to: '/404.html',
7:50:24 PM:     status: 404,
7:50:24 PM:     force: true,
7:50:24 PM:     conditions: {},
7:50:24 PM:     headers: {}
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/build-manifest.json',
7:50:24 PM:     query: {},
7:50:24 PM:     to: '/404.html',
7:50:24 PM:     status: 404,
7:50:24 PM:     force: true,
7:50:24 PM:     conditions: {},
7:50:24 PM:     headers: {}
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/prerender-manifest.json',
7:50:24 PM:     query: {},
7:50:24 PM:     to: '/404.html',
7:50:24 PM:     status: 404,
7:50:24 PM:     force: true,
7:50:24 PM:     conditions: {},
7:50:24 PM:     headers: {}
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/react-loadable-manifest.json',
7:50:24 PM:     query: {},
7:50:24 PM:     to: '/404.html',
7:50:24 PM:     status: 404,
7:50:24 PM:     force: true,
7:50:24 PM:     conditions: {},
7:50:24 PM:     headers: {}
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/BUILD_ID',
7:50:24 PM:     query: {},
7:50:24 PM:     to: '/404.html',
7:50:24 PM:     status: 404,
7:50:24 PM:     force: true,
7:50:24 PM:     conditions: {},
7:50:24 PM:     headers: {}
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/api',
7:50:24 PM:     query: {},
7:50:24 PM:     to: '/.netlify/functions/___netlify-handler',
7:50:24 PM:     status: 200,
7:50:24 PM:     force: false,
7:50:24 PM:     conditions: {},
7:50:24 PM:     headers: {}
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/api/*',
7:50:24 PM:     query: {},
7:50:24 PM:     to: '/.netlify/functions/___netlify-handler',
7:50:24 PM:     status: 200,
7:50:24 PM:     force: false,
7:50:24 PM:     conditions: {},
7:50:24 PM:     headers: {}
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/favicon.ico',
7:50:24 PM:     query: {},
7:50:24 PM:     to: '/favicon.ico',
7:50:24 PM:     status: 200,
7:50:24 PM:     force: false,
7:50:24 PM:     conditions: { Cookie: [Array] },
7:50:24 PM:     headers: {}
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/vercel.svg',
7:50:24 PM:     query: {},
7:50:24 PM:     to: '/vercel.svg',
7:50:24 PM:     status: 200,
7:50:24 PM:     force: false,
7:50:24 PM:     conditions: { Cookie: [Array] },
7:50:24 PM:     headers: {}
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/*',
7:50:24 PM:     query: {},
7:50:24 PM:     to: '/.netlify/functions/___netlify-handler',
7:50:24 PM:     status: 200,
7:50:24 PM:     force: true,
7:50:24 PM:     conditions: { Cookie: [Array] },
7:50:24 PM:     headers: {}
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/*',
7:50:24 PM:     query: {},
7:50:24 PM:     to: '/.netlify/functions/___netlify-handler',
7:50:24 PM:     status: 200,
7:50:24 PM:     force: false,
7:50:24 PM:     conditions: {},
7:50:24 PM:     headers: {}
7:50:24 PM:   },
7:50:24 PM:   {
7:50:24 PM:     from: '/social-images/:slug',
7:50:24 PM:     to: '/.netlify/functions/resoc-open-graph-image/:slug',
7:50:24 PM:     status: 200
7:50:24 PM:   }
7:50:24 PM: ].
7:50:24 PM: ​
7:50:24 PM: (@resoc/netlify-plugin-social-image onBuild completed in 25ms)
7:50:24 PM: ​
7:50:24 PM: ────────────────────────────────────────────────────────────────
7:50:24 PM:   5. Functions bundling                                         
7:50:24 PM: ────────────────────────────────────────────────────────────────
7:50:24 PM: ​
7:50:24 PM: Packaging Functions from .netlify/functions-internal directory:
7:50:24 PM:  - ___netlify-handler/___netlify-handler.js
7:50:24 PM:  - ___netlify-odb-handler/___netlify-odb-handler.js
7:50:24 PM:  - _ipx/_ipx.js
7:50:24 PM: ​
7:50:24 PM: Packaging Functions from netlify/functions directory:
7:50:24 PM:  - resoc-open-graph-image.js
7:50:24 PM: ​
7:50:52 PM: ​
7:50:52 PM: (Functions bundling completed in 28.1s)
7:50:52 PM: ​
7:50:52 PM: ────────────────────────────────────────────────────────────────
7:50:52 PM:   6. @netlify/plugin-nextjs (onPostBuild event)                 
7:50:52 PM: ────────────────────────────────────────────────────────────────
7:50:52 PM: ​
7:50:52 PM: Next.js cache saved.
7:50:53 PM: ​
7:50:53 PM: (@netlify/plugin-nextjs onPostBuild completed in 87ms)
7:50:53 PM: ​
7:50:53 PM: ────────────────────────────────────────────────────────────────
7:50:53 PM:   7. Deploy site                                                
7:50:53 PM: ────────────────────────────────────────────────────────────────
7:50:53 PM: ​
7:50:53 PM: Starting to deploy site from '.next'
7:50:53 PM: Creating deploy tree 
7:50:53 PM: Creating deploy upload records
7:50:53 PM: 16 new files to upload
7:50:53 PM: 4 new functions to upload
7:50:57 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
7:50:58 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
7:50:59 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
7:51:01 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
7:51:02 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
7:51:04 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
7:51:08 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
7:51:15 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
7:51:28 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
7:51:42 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
7:52:03 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
7:52:30 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
7:52:30 PM: Failed to upload file: resoc-open-graph-image
7:52:30 PM: Site deploy was successfully initiated
7:52:30 PM: ​
7:52:30 PM: (Deploy site completed in 1m 37.6s)
7:52:30 PM: ​
7:52:30 PM: ────────────────────────────────────────────────────────────────
7:52:30 PM:   Netlify Build Complete                                        
7:52:30 PM: ────────────────────────────────────────────────────────────────
7:52:30 PM: ​
7:52:30 PM: (Netlify Build completed in 2m 41.6s)
7:52:31 PM: Execution cancelled
7:52:31 PM: Error running command: Command was cancelled
7:52:31 PM: Failing build: Failed to build site
7:52:31 PM: Finished processing build request in 3m6.054273399s
phbernard commented 2 years ago

I encountered this issue months ago. The root cause is that the plugin embeds Puppeteer, whose size is just below Netlify's function max size. To fix this issue, I reduced the plugin size, by removing dependencies and inlining code.

I won't be able to work on this issue right now. At least, a tip: 11ty screenshot API is quite similar. It would be useful to:

dandenney commented 2 years ago

Thank you, I'll follow up with whatever I find to get it working

phbernard commented 2 years ago

Great! I would gladly accept a PR if you submit one.