question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The Edge Function "map" is 1.13mb which exceeds the maximum size limit of 1mb.

See original GitHub issue

What version of Next.js are you using?

12.0.7

What version of Node.js are you using?

v14.17.0

What browser are you using?

CLI

What operating system are you using?

macOS

How are you deploying your application?

vercel cli

Describe the Bug

This is an experimental feature in Next.js 12, but once enabled, SSR will use the same Edge Runtime as Middleware.

The Edge Runtime breaks my code, as:

The Edge Function “map” is 1.13mb which exceeds the maximum size limit of 1mb.

Related to https://github.com/vercel/next.js/issues/31317

Expected Behavior

I should be able to enable concurrentFeatures: true and publish my project to vercel, without triggering the different runtime.

Quite frankly, the 1mb limit is just too small. Using threejs libs, d3 libs, material-ui, and accessibility libs easily pushes me above the limit. Using next/dynamic, adding sideEffects: false, and other techniques have no effect on the size.

I also tried using cdns with nextjs like https://betterprogramming.pub/next-js-reducing-bundle-size-when-using-third-party-libraries-db5407252d59 suggests, but that did not work either.

Even if you do manage to somehow reduce the file size, then you will still run into https://github.com/vercel/vercel/discussions/6931

To Reproduce

N/A

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Ali-Hussein-devcommented, Feb 11, 2022

@balazsorban44 here is the link to the issue with the code https://github.com/vercel/next.js/issues/34201

0reactions
github-actions[bot]commented, Sep 14, 2022

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Genome-wide run of homozygosity analysis reveals ... - NCBI
This study used whole genome sequences of four Tibetan chicken populations reared on the Tibetan plateau to analyze genetic diversity, run of homozygosity, ......
Read more >
A linkage disequilibrium map of chromosome 22 - CiteSeerX
This latter function is important for association mapping studies that seek to localize genetic variants that influence complex traits and diseases.
Read more >
Chapter: Configuring Packet Capture - Cisco
The network administrator may define the capture buffer size and type (circular, or linear) and the maximum number of bytes of each packet...
Read more >
on understanding the internet via edge measurement
Regardless of how much com- plexity is introduced by devices in edge networks, routers must still only understand the IP layer to function...
Read more >
Genome-wide run of homozygosity analysis ... - BMC Genomics
Abstract. Background: In Tibet, the two most important breeds are Tibetan chicken and Lhasa white chicken, and the duo exhibit specific adaptations to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found