Open arihantverma opened 2 weeks ago
It works if vite ssr external config is removed
import { defineConfig } from 'astro/config';
import react from '@astrojs/react';
import tailwind from '@astrojs/tailwind';
import sitemap from '@astrojs/sitemap';
import markdoc from '@astrojs/markdoc';
import keystatic from '@keystatic/astro';
// https://astro.build/config
export default defineConfig({
output: 'hybrid',
site: 'https://example.com',
integrations: [tailwind(), react(), sitemap(), markdoc(), keystatic()],
// this vite config is only needed inside the monorepo
- vite: {
- ssr: {
- external: ['@keystatic/core'],
- },
- },
});
Output of
pnpm run dev --verbose
whenhttp://127.0.0.1:4321/keystatic
is visited, after following the steps to run dev-projects from readmecc @emmatown @JedWatson