Skip to content

outDir not being respected #128

@macutko

Description

@macutko

Hi,

This is my config (working in a nx monorepo):

const outputDir = join(__dirname, '../../dist/apps/web');

// https://astro.build/config
export default defineConfig({
    site: 'https://cooki.fi',
    outDir: outputDir,
    trailingSlash: 'never',
    vite: {
        plugins: [mkcert(), tailwindcss()]
    },
    i18n: {
        locales: ['en', 'sk'],
        defaultLocale: 'en'
    },
    integrations: [
        sitemap(),
        mdx(),
        react({
            experimentalReactChildren: true
        }),
        icon(),
        pagefind({})
    ]
});

I have built the app. Astro preview of the app works - therefor nothing is wrong with the built artifacts/config as far as I can see. However running serve with this config leads to the following errors in my console:

Image

So I am thinking the outDir is not being honored by the pagefind() integration?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions