Next.js Discord

Discord Forum

How do I get vercel speedinsights workinng when running vercel deploy --prebuilt

Unanswered
Asian black bear posted this in #help-forum
Open in Discord
Asian black bearOP
We build our nextjs app in a github action using vercel deploy --prebuilt. We have also implemented vercel speed insights. When the app is built in github we get a 404 on the speed insights script path (/_vercel/speed-insights/script.js).

If I trigger a deploy from my own maching using vercel deploy (and let vercel build the app) the speed insights script works.

How can I get speedinsights working when using the --prebuilt flag?

0 Replies