From 23db3ec5d6acdd2334756533d93a60ae6d825c6b Mon Sep 17 00:00:00 2001 From: khen <30577427+khendrikse@users.noreply.github.com> Date: Tue, 2 Aug 2022 17:28:28 +0200 Subject: [PATCH] fix: replace netlify:edge identifier with full URL --- plugin/src/templates/edge/ipx.ts | 2 +- plugin/src/templates/edge/runtime.ts | 2 +- plugin/src/templates/edge/utils.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/src/templates/edge/ipx.ts b/plugin/src/templates/edge/ipx.ts index f46818495b..9f8313a6d8 100644 --- a/plugin/src/templates/edge/ipx.ts +++ b/plugin/src/templates/edge/ipx.ts @@ -1,5 +1,5 @@ import { Accepts } from 'https://deno.land/x/accepts@2.1.1/mod.ts' -import type { Context } from 'netlify:edge' +import type { Context } from 'https://edge.netlify.com' // Available at build time import imageconfig from './imageconfig.json' assert { type: 'json' } diff --git a/plugin/src/templates/edge/runtime.ts b/plugin/src/templates/edge/runtime.ts index 6fbb80af89..076a994610 100644 --- a/plugin/src/templates/edge/runtime.ts +++ b/plugin/src/templates/edge/runtime.ts @@ -1,4 +1,4 @@ -import type { Context } from 'netlify:edge' +import type { Context } from 'https://edge.netlify.com' import edgeFunction from './bundle.js' import { buildResponse } from './utils.ts' diff --git a/plugin/src/templates/edge/utils.ts b/plugin/src/templates/edge/utils.ts index ffe251e55a..582eb50ae7 100644 --- a/plugin/src/templates/edge/utils.ts +++ b/plugin/src/templates/edge/utils.ts @@ -1,4 +1,4 @@ -import type { Context } from 'netlify:edge' +import type { Context } from 'https://edge.netlify.com' import { ElementHandlers, HTMLRewriter } from 'https://deno.land/x/html_rewriter@v0.1.0-pre.17/index.ts' export interface FetchEventResult {