You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the paths on my site is /dev, like this: example.org/dev. When I try to deploy to Vercel using the @astrojs/vercel package, the following error is reported.
[22:26:20.051] Running build in Cleveland, USA (East) – cle1
[22:26:20.117] Cloning github.com/XXXX (Branch: main, Commit: XXXX)
[22:26:20.357] Previous build cache not available
[22:26:20.465] Cloning completed: 347.747ms
[22:26:20.588] Running "vercel build"
[22:26:21.114] Vercel CLI 31.0.1
[22:26:21.669] Installing dependencies...
[22:26:27.333]
[22:26:27.333] added 478 packages in 5s
[22:26:27.334]
[22:26:27.334] 175 packages are looking for funding
[22:26:27.334] run `npm fund` for details
[22:26:27.355] Detected `package-lock.json` generated by npm 7+...
[22:26:27.355] Running "npm run build"
[22:26:27.664]
[22:26:27.664] > @example/basics@0.0.1 build
[22:26:27.664] > astro build
[22:26:27.664]
[22:26:28.826] 02:26:28 PM [content] No content directory found. Skipping type generation.
[22:26:28.827] 02:26:28 PM [build] output target: server
[22:26:28.827] 02:26:28 PM [build] deploy adapter: @astrojs/vercel/serverless
[22:26:28.828] 02:26:28 PM [build] Collecting build info...
[22:26:28.828] 02:26:28 PM [build] Completed in 73ms.
[22:26:28.829] 02:26:28 PM [build] Building server entrypoints...
[22:26:30.072] 02:26:30 PM [build] Completed in 1.24s.
[22:26:30.084]
[22:26:30.084] finalizing server assets
[22:26:30.084]
[22:26:30.084] 02:26:30 PM [build] Rearranging server assets...
[22:26:30.511] error ENXIO: no such device or address, open '/dev/tty'
[22:26:30.511] Error: ENXIO: no such device or address, open '/dev/tty'
The build step keeps getting stuck on this error and doesn't stop.
If you delete the /dev path, or rename it to /dev1, it will not report an error and the site will deploy properly.
If you run npm run build locally or on stackblitz, no errors will be reported.
What's the expected result?
The site should be deployed successfully, and the following is the successful log output.
...
[22:09:12.177]
[22:09:12.177] finalizing server assets
[22:09:12.177]
[22:09:12.177] 02:09:12 PM [build] Rearranging server assets...
[22:09:12.186]
[22:09:14.980] 02:09:14 PM [build] Server built in 5.29s
[22:09:14.980] 02:09:14 PM [build] Complete!
[22:09:15.079] Build Completed in /vercel/output [8s]
[22:09:15.198] Deploying outputs...
[22:09:18.854] Deployment completed
[22:09:23.210] Uploading build cache [27.45 MB]...
[22:09:24.369] Build cache uploaded: 1.158s
What version of
astro
are you using?@astrojs/vercel: 3.6.0, astro: 2.7.3
Are you using an SSR adapter? If so, which one?
Vercel
What package manager are you using?
pnpm
What operating system are you using?
Vercel Deployments, WSL
What browser are you using?
None
Describe the Bug
One of the paths on my site is
/dev
, like this:example.org/dev
. When I try to deploy to Vercel using the@astrojs/vercel
package, the following error is reported.The build step keeps getting stuck on this error and doesn't stop.
If you delete the
/dev
path, or rename it to/dev1
, it will not report an error and the site will deploy properly.If you run
npm run build
locally or on stackblitz, no errors will be reported.What's the expected result?
The site should be deployed successfully, and the following is the successful log output.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/astro-vercel-dev-path?file=src%2Fpages%2Fdev%2Findex.astro
Participation
The text was updated successfully, but these errors were encountered: