Next.js Discord

Discord Forum

Big Question, NEXT, Storybook and Vercel + middleware.ts

Unanswered
Asiatic Lion posted this in #help-forum
Open in Discord
Asiatic LionOP
When I run according to site instructions:
https://vercel.com/guides/storybook-with-vercel

I get this error when middleware.ts is used

"""
$ vercel --prod
Vercel CLI 30.0.0
🔍 Inspect: https://vercel.com/name/sandbox- [1s]
Error: Command "rm middleware.ts && npm run build-storybook" exited with 1
Error: Check your logs at https://.app/_logs or run vercel logs sandbox-vercel.app
$ vercel --prod
"""

Is there a way to bypass this or should I just deploy on an Ubuntu Server instead?

0 Replies