Skip to content

Commit 87e4032

Browse files
remove no longer necessary aliases in api example's wrangler.toml (#16)
1 parent 5454280 commit 87e4032

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

examples/api/wrangler.toml

-10
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,3 @@ workers_dev = true
77
minify = false # let's disable minification for easier debuggability
88

99
experimental_assets = { directory = ".worker-next/assets", binding = "ASSETS" }
10-
11-
# The aliases below should not be needed (we don't want users to have to define the aliases themselves)
12-
[alias]
13-
# critters is `require`d from `pages.runtime.prod.js` when running wrangler dev, so we need to stub it out
14-
"critters" = "../../builder/src/build/build-worker/templates/shims/empty.ts"
15-
# @opentelemetry/api is `require`d when running wrangler dev, so we need to stub it out
16-
# IMPORTANT: we shim @opentelemetry/api to the throwing shim so that it will throw right away, this is so that we throw inside the
17-
# try block here: https://github.com/vercel/next.js/blob/9e8266a7/packages/next/src/server/lib/trace/tracer.ts#L27-L31
18-
# causing the code to require the 'next/dist/compiled/@opentelemetry/api' module instead (which properly works)
19-
"@opentelemetry/api" = "../../builder/src/build/build-worker/templates/shims/throw.ts"

0 commit comments

Comments
 (0)