Skip to content

PaulBratslavsky/strapi-community-astro-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Strapi Community Astro Loader

This package is a community-driven Astro loader for Strapi. It allows you to fetch content from a Strapi API and use it in your Astro project.

note: this is a work in progress and requires the use of the following package to be installed inside your Strapi project in order for it to work:

https://www.npmjs.com/package/get-strapi-schema

Installation

npm install strapi-community-astro-loader

Usage

import { strapiLoader } from "strapi-community-astro-loader";

// pass the collection type name to the loader
const strapiPostsLoader = defineCollection({
  loader: strapiLoader({ contentType: "article" }),
});

License

MIT

For questions, contributions, and support, please open an issue on GitHub.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published