Skip to content

Commit

Permalink
test: add unit test variants for CDN Cache Control cases
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Sep 8, 2023
1 parent 992382d commit e46341f
Show file tree
Hide file tree
Showing 3 changed files with 3,023 additions and 925 deletions.
4 changes: 2 additions & 2 deletions packages/runtime/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import destr from 'destr'
import { existsSync, readFileSync } from 'fs-extra'
import { outdent } from 'outdent'

import { HANDLER_FUNCTION_NAME, ODB_FUNCTION_NAME } from './constants'
import { HANDLER_FUNCTION_NAME } from './constants'
import { restoreCache, saveCache } from './helpers/cache'
import {
getNextConfig,
Expand Down Expand Up @@ -254,7 +254,7 @@ const plugin: NetlifyPlugin = {
}

await checkForOldFunctions({ functions })
await checkZipSize(join(FUNCTIONS_DIST, `${ODB_FUNCTION_NAME}.zip`))
await checkZipSize(join(FUNCTIONS_DIST, `${HANDLER_FUNCTION_NAME}.zip`))
const nextConfig = await getNextConfig({ publish, failBuild })

const { basePath, appDir, experimental } = nextConfig
Expand Down
Loading

0 comments on commit e46341f

Please sign in to comment.