Documentation
Troubleshooting

Troubleshooting

we might not have all the answers for your questions, but we’ll aim to keep improving.

Application Packaging

Why do some of my assets in /public and other directories not get shipped?

💡

If you need to include assets explicitly, see How do I include resources?".

The amount of space available on serverless infrastructure is limited. Dependency tracing is used to ship only the necessary files, and discard the rest. We recommend importing your assets in this way to reduce your bundle size (max 50 MB).

✅ Encouraged: Import assets as code

import Image from 'next/image';
import myFancyPicture from "../public/fancypicture.png";
 
...
 
<Image alt="caption" src={myFancyPicture}/>

🚫 Avoid: Reference assets by path

<Image alt="caption" src="/public/fancypicture.png"/>

Application Platform

Why can’t my project name be longer than 36 characters?

This is a temporary limitation in the infrastructure: the length of project names and environment names must fit within 36 characters each.