diff --git a/.changeset/seven-shrimps-train.md b/.changeset/seven-shrimps-train.md new file mode 100644 index 00000000..1030cc31 --- /dev/null +++ b/.changeset/seven-shrimps-train.md @@ -0,0 +1,5 @@ +--- +"@content-collections/solid-start": patch +--- + +Fix build of solid-start apps, by generating the collections on the ssr phase instead of the server-fns phase. diff --git a/packages/solid-start/src/index.ts b/packages/solid-start/src/index.ts index 68c04d97..e701d73a 100644 --- a/packages/solid-start/src/index.ts +++ b/packages/solid-start/src/index.ts @@ -7,10 +7,8 @@ export default function remixContentCollectionsPlugin( const plugin = contentCollectionsPlugin({ ...(options || {}), isEnabled(config) { - if (config.base === "/_server") { - return true; - } - return false; + // @ts-ignore router is an solid-start internal property + return config.router?.name === "ssr"; }, });