Skip to content

Commit

Permalink
chore: Remove AWS_JS_LAMBDA_RUNTIME check (#225)
Browse files Browse the repository at this point in the history
* Remove AWS_LAMBDA_JS_RUNTIME check

* Remove link to deleted section in README

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
stephenjbradshaw and kodiakhq[bot] authored Jan 17, 2022
1 parent 55795b8 commit 1422702
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ Gatsby Plugin", and a Gatsby plugin called "gatsby-plugin-netlify":
(the Netlify build plugin)
- [Install version 4 beta of `gatsby-plugin-netlify`](#install-the-gatsby-plugin)
(the Gatsby plugin)
- [Configure your build to use the correct build image and Node.js runtime](#build-configuration)

### Install the Netlify build plugin

Expand Down
11 changes: 0 additions & 11 deletions plugin/src/helpers/environment.ts

This file was deleted.

5 changes: 0 additions & 5 deletions plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import fs from 'fs-extra'

import { normalizedCacheDir, restoreCache, saveCache } from './helpers/cache'
import { checkGatsbyConfig, mutateConfig, spliceConfig } from './helpers/config'
import { checkEnvironment } from './helpers/environment'

// eslint-disable-next-line no-template-curly-in-string
const lmdbCacheString = 'process.cwd(), `.cache/${cacheDbFile}`'
Expand Down Expand Up @@ -37,10 +36,6 @@ export async function onPreBuild({
`Gatsby sites must publish the public directory, but your site’s publish directory is set to “${PUBLISH_DIR}”. Please set your publish directory to your Gatsby site’s public directory.`,
)
}
// Only run in CI
if (process.env.NETLIFY) {
await checkEnvironment({ utils })
}
await restoreCache({ utils, publish: PUBLISH_DIR })
const CACHE_DIR = normalizedCacheDir(PUBLISH_DIR)

Expand Down

0 comments on commit 1422702

Please sign in to comment.