Skip to content

Commit

Permalink
chore: enable featureflag
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Apr 14, 2023
1 parent 5d5351f commit 15b3333
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/edge-functions/registry.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { NETLIFYDEVERR, NETLIFYDEVLOG, chalk, log, warn, watchDebounced } from '
/** @typedef {import('@netlify/edge-bundler').FunctionConfig} FunctionConfig */
/** @typedef {Awaited<ReturnType<typeof import('@netlify/edge-bundler').serve>>} RunIsolate */

const featureFlags = { edge_functions_correct_order: true }

export class EdgeFunctionsRegistry {
/** @type {import('@netlify/edge-bundler')} */
#bundler
Expand Down Expand Up @@ -320,12 +322,14 @@ export class EdgeFunctionsRegistry {
this.#userFunctionConfigs,
this.#internalFunctionConfigs,
this.#declarationsFromDeployConfig,
featureFlags,
)
const manifest = this.#bundler.generateManifest({
declarations,
userFunctionConfig: this.#userFunctionConfigs,
internalFunctionConfig: this.#internalFunctionConfigs,
functions: this.#functions,
featureFlags,
})
const invocationMetadata = {
function_config: manifest.function_config,
Expand Down Expand Up @@ -366,6 +370,7 @@ export class EdgeFunctionsRegistry {
userFunctionConfig: this.#userFunctionConfigs,
internalFunctionConfig: this.#internalFunctionConfigs,
functions,
featureFlags,
})

const routes = [...manifest.routes, ...manifest.post_cache_routes].map((route) => ({
Expand Down

0 comments on commit 15b3333

Please sign in to comment.