0.4.2 • Published 4 months ago

astro-loader-prismic v0.4.2

Weekly downloads
-
License
-
Repository
github
Last release
4 months ago

Astro Loader Prismic

This package is a loader to load data from a Prismic CMS into Astro using the Astro Loader API introduced in Astro 5.

Basic usage

In your content configuration file, you can use the PrismicLoader function to use your Prismic content as a data source.

import { PrismicLoader } from "astro-loader-prismic";

const loaders = await PrismicLoader({
    repository: "respository-name",
    accessToken: "access-token"
});

export const collections = { ...loaders };

Remember that due to the nature Astros Content Layer lifecycle, the loader will only fetch entries at build time, even when using on-demand rendering. If you want to update your deployed site with new entries, you need to rebuild it.

0.4.2

4 months ago

0.3.0

4 months ago

0.2.1

4 months ago

0.2.0

4 months ago

0.4.1

4 months ago

0.3.2

4 months ago

0.4.0

4 months ago

0.3.1

4 months ago

0.2.2

4 months ago

0.1.6

4 months ago

0.1.5

4 months ago

0.1.4

4 months ago

0.1.3

4 months ago

0.1.2

4 months ago

0.1.1

4 months ago

0.1.0

4 months ago