Running npm run build I now see the following in the logs
08:03:08 AM [build] Waiting for the @astrojs/vercel/serverless integration...
[@astrojs/vercel] The module "stream/web" inside the file "C:\Users\rever\Documents\Projects\minbedrift-app\node_modules\@prisma\client\runtime\index.js" couldn't be resolved. This may not be a problem, but it's worth checking.
[@astrojs/vercel] The module "util/types" inside the file "C:\Users\rever\Documents\Projects\minbedrift-app\node_modules\@prisma\client\runtime\index.js" couldn't be resolved. This may not be a problem, but it's worth checking.
error Failed to parse C:\Users\rever\Documents\Projects\minbedrift-app\node_modules\@mapbox\node-pre-gyp\lib\util\nw-pre-gyp\index.html as script:
Unexpected token (1:0)
File:
Error
Stacktrace:
Error: Failed to parse C:\Users\rever\Documents\Projects\minbedrift-app\node_modules\@mapbox\node-pre-gyp\lib\util\nw-pre-gyp\index.html as script:
Unexpected token (1:0)
This happens both locally on Windows, but also when Vercel is building.
Config looks like this:
import { defineConfig } from 'astro/config';
import vue from '@astrojs/vue';
// import node from '@astrojs/node';
import vercel from '@astrojs/vercel/serverless';
import tailwind from '@astrojs/tailwind';
export default defineConfig({
integrations: [vue(), tailwind()],
output: 'server',
adapter: vercel(),
});