Skip to content

Commit b9144d2

Browse files
committed
chore: Remove now unused template variable
1 parent f0cd4e7 commit b9144d2

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

src/build/functions/server.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ const applyTemplateVariables = (template: string, variables: Record<string, stri
104104
const getHandlerFile = async (ctx: PluginContext): Promise<string> => {
105105
const templatesDir = join(ctx.pluginDir, 'dist/build/templates')
106106

107-
const templateVariables: Record<string, string> = {
108-
'{{useRegionalBlobs}}': ctx.useRegionalBlobs.toString(),
109-
}
107+
const templateVariables: Record<string, string> = {}
110108
// In this case it is a monorepo and we need to use a own template for it
111109
// as we have to change the process working directory
112110
if (ctx.relativeAppDir.length !== 0) {

src/build/templates/handler-monorepo.tmpl.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ import tracing from '{{cwd}}/.netlify/dist/run/handlers/tracing.js'
77

88
process.chdir('{{cwd}}')
99

10-
// Set feature flag for regional blobs
11-
process.env.USE_REGIONAL_BLOBS = '{{useRegionalBlobs}}'
12-
1310
let cachedHandler
1411
export default async function (req, context) {
1512
if (process.env.NETLIFY_OTLP_TRACE_EXPORTER_URL) {

src/build/templates/handler.tmpl.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ import serverHandler from './.netlify/dist/run/handlers/server.js'
66
import { getTracer } from './.netlify/dist/run/handlers/tracer.cjs'
77
import tracing from './.netlify/dist/run/handlers/tracing.js'
88

9-
// Set feature flag for regional blobs
10-
process.env.USE_REGIONAL_BLOBS = '{{useRegionalBlobs}}'
11-
129
export default async function handler(req, context) {
1310
if (process.env.NETLIFY_OTLP_TRACE_EXPORTER_URL) {
1411
tracing.start()

0 commit comments

Comments
 (0)