I switched the output from static to server and run npx astro add vercel. When I pushed the changes I got the following error on vercel:
[15:26:38.610] 03:26:38 PM [build] Waiting for the @astrojs/vercel/serverless integration...
[15:26:39.315] error Failed to parse /vercel/path0/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html as script:
[15:26:39.315] Unexpected token (1:0)
[15:26:39.315] Error: Failed to parse /vercel/path0/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html as script:
[15:26:39.316] Unexpected token (1:0)
[15:26:39.316] at Object.analyze [as default] (/vercel/path0/node_modules/@vercel/nft/out/analyze.js:226:30)
[15:26:39.316] at Job.emitDependency (/vercel/path0/node_modules/@vercel/nft/out/node-file-trace.js:301:52)
[15:26:39.316] at async /vercel/path0/node_modules/@vercel/nft/out/node-file-trace.js:336:21
[15:26:39.316] at async Promise.all (index 30)
[15:26:39.316] at async Job.emitDependency (/vercel/path0/node_modules/@vercel/nft/out/node-file-trace.js:307:9)
[15:26:39.316] at async /vercel/path0/node_modules/@vercel/nft/out/node-file-trace.js:336:21
[15:26:39.317] at async Promise.all (index 6)
[15:26:39.317] at async Job.emitDependency (/vercel/path0/node_modules/@vercel/nft/out/node-file-trace.js:307:9)
[15:26:39.317] at async /vercel/path0/node_modules/@vercel/nft/out/node-file-trace.js:336:21
[15:26:39.317] at async Promise.all (index 4)
[15:26:39.348] error Command failed with exit code 1.
[15:26:39.348] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[15:26:39.366] Error: Command "yarn run build" exited with 1
Open a New Issue