I've been making a website with astro (https://astro.build) and after some time, while running astro preview
it errors. Here's my astro.config.mjs
code:
import { defineConfig } from 'astro/config';
import vercel from '@astrojs/vercel/serverless';
import serviceWorker from 'astrojs-service-worker';
export default defineConfig({
trailingSlash: 'ignore',
output: 'server',
adapter: vercel(),
integrations: [serviceWorker()],
});
Any help would be appreciated.
You can't preview the build of SSR adapters with astro preview
, except the node adapter.
I'm quoting the docs
Since Astro 1.5.0, astro preview also works for SSR builds if you use an adapter that supports it. Currently, only the Node adapter supports astro preview.