Skip to content

Commit 729a517

Browse files
committed
refactor: remove redirect
1 parent 6f94bf1 commit 729a517

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

demos/default/netlify.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,3 @@ package = "../plugin-wrapper/"
2424
# This is a fake plugin, that makes it run npm install
2525
[[plugins]]
2626
package = "@netlify/plugin-local-install-core"
27-
28-
[[redirects]]
29-
from = "/en/image"
30-
to = "/.netlify/functions/___netlify-handler"
31-
status = 200

packages/runtime/src/helpers/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const configureHandlerFunctions = async ({ netlifyConfig, publish, ignore
9292
}
9393

9494
/* eslint-enable no-underscore-dangle */
95-
;[HANDLER_FUNCTION_NAME, ODB_FUNCTION_NAME].forEach((functionName) => {
95+
[HANDLER_FUNCTION_NAME, ODB_FUNCTION_NAME].forEach((functionName) => {
9696
netlifyConfig.functions[functionName] ||= { included_files: [], external_node_modules: [] }
9797
netlifyConfig.functions[functionName].node_bundler = 'nft'
9898
netlifyConfig.functions[functionName].included_files ||= []

0 commit comments

Comments
 (0)