Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
javivelasco committed Jul 21, 2022
1 parent 377d358 commit ec66bc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/next/server/web/sandbox/context.ts
Expand Up @@ -114,7 +114,7 @@ async function createModuleContext(options: ModuleContextOptions) {
const runtime = new EdgeRuntime({
codeGeneration:
process.env.NODE_ENV !== 'production'
? { strings: true, wasm: false }
? { strings: true, wasm: true }
: undefined,
extend: (context) => {
context.process = createProcessPolyfill(options)
Expand Down
2 changes: 1 addition & 1 deletion test/development/middleware-warnings/index.test.ts
Expand Up @@ -58,7 +58,7 @@ describe('middlewares', () => {
{
title: 'populating response with an async function call',
code: `export default async function middleware(request) {
return new Response(await fetch('https://example.com'));
return new Response(await fetch('https://example.vercel.sh'));
}`,
},
])('warns when $title', async ({ code }) => {
Expand Down

0 comments on commit ec66bc9

Please sign in to comment.