Running on Vercel #258
-
I have installed When I run the app locally, Skia-cavas is able to produce the images correctly. But when I try to
Is there any configuration that is missing? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I'm not familiar with how Next.js handles bundling js for the client vs managing its serverside dependencies (and it's also unclear to me which context you're trying to use the canvas from). Do you think you might be able to create a minimal test project that demonstrates the bug so I can investigate? |
Beta Was this translation helpful? Give feedback.
-
It sounds like there shouldn't be a problem, what about using npm? I created a test repository(canvas-test) that can be deployed in vercel |
Beta Was this translation helpful? Give feedback.
-
我在nextjs中也遇到相同的问题,我的原因是webpage无法正确处理.node文件,因此只需要修改next.config.js配置就能解决
|
Beta Was this translation helpful? Give feedback.
-
Using The main wrinkles you're likely to run into at this point involve bundling and alternative package managers. See the docs for details on:
|
Beta Was this translation helpful? Give feedback.
Using
skia-canvas
on Vercel should be easier as of the 3.0 release. The node module now statically links system libraries that were previously available in the Vercel build context but not as part of its edge runtime.The main wrinkles you're likely to run into at this point involve bundling and alternative package managers. See the docs for details on:
pnpm