Skip to content

Commit 1422702

Browse files
chore: Remove AWS_JS_LAMBDA_RUNTIME check (#225)
* 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>
1 parent 55795b8 commit 1422702

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ Gatsby Plugin", and a Gatsby plugin called "gatsby-plugin-netlify":
4040
(the Netlify build plugin)
4141
- [Install version 4 beta of `gatsby-plugin-netlify`](#install-the-gatsby-plugin)
4242
(the Gatsby plugin)
43-
- [Configure your build to use the correct build image and Node.js runtime](#build-configuration)
4443

4544
### Install the Netlify build plugin
4645

plugin/src/helpers/environment.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

plugin/src/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import fs from 'fs-extra'
55

66
import { normalizedCacheDir, restoreCache, saveCache } from './helpers/cache'
77
import { checkGatsbyConfig, mutateConfig, spliceConfig } from './helpers/config'
8-
import { checkEnvironment } from './helpers/environment'
98

109
// eslint-disable-next-line no-template-curly-in-string
1110
const lmdbCacheString = 'process.cwd(), `.cache/${cacheDbFile}`'
@@ -37,10 +36,6 @@ export async function onPreBuild({
3736
`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.`,
3837
)
3938
}
40-
// Only run in CI
41-
if (process.env.NETLIFY) {
42-
await checkEnvironment({ utils })
43-
}
4439
await restoreCache({ utils, publish: PUBLISH_DIR })
4540
const CACHE_DIR = normalizedCacheDir(PUBLISH_DIR)
4641

0 commit comments

Comments
 (0)