You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adds another ImportMappingReplacement for the font file in order to add markers to the filename.
The markers are used to generate the next-font-manifest.json (and also in next.js code).
pnpm test test/integration/edge-runtime-configurable-guards/test/index.test.js
Edge runtime configurable guards > Multiple functions with different configurations > warns in dev for allowed code
Expand output
● Edge runtime configurable guards › Multiple functions with different configurations › warns in dev for allowed code
expect(received).toContain(expected) // indexOf
Expected substring: "Dynamic Code Evaluation (e. g. 'eval', 'new Function') not allowed in Edge Runtime"
Received string: " ▲ Next.js 14.1.1-canary.28
- Local: http://localhost:34791·
⨯ Middleware cannot be used with \"output: export\". See more info here: https://nextjs.org/docs/advanced-features/static-html-export
⨯ API Routes cannot be used with \"output: export\". See more info here: https://nextjs.org/docs/advanced-features/static-html-export
✓ Ready in 1286ms
○ Compiling / ...
✓ Compiled / in 738ms (196 modules)
"
86 | expect(res.status).toBe(200)
87 | await retry(async () => {
> 88 | expect(context.logs.output).toContain(
| ^
89 | `Dynamic Code Evaluation (e. g. 'eval', 'new Function') not allowed in Edge Runtime`
90 | )
91 | })
at toContain (integration/edge-runtime-configurable-guards/test/index.test.js:88:37)
at fn (lib/next-test-utils.ts:724:20)
at Object.<anonymous> (integration/edge-runtime-configurable-guards/test/index.test.js:87:7)
Read more about building and testing Next.js in contributing.md.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Adds another
ImportMappingReplacement
for the font file in order to add markers to the filename.The markers are used to generate the
next-font-manifest.json
(and also in next.js code).Closes PACK-2352