2.0.0 • Published 1 year ago
astro-runtime-config v2.0.0
astro-runtime-config
This is an Astro integration that allows to retrieve astro configuration object at runtime
Usage
Prerequisites
- Astro 4.14+
Installation
Install the integration automatically using the Astro CLI:
pnpm astro add astro-runtime-confignpx astro add astro-runtime-configyarn astro add astro-runtime-configOr install it manually:
- Install the required dependencies
pnpm add astro-runtime-confignpm install astro-runtime-configyarn add astro-runtime-config- Add the integration to your astro config
+import astroRuntimeConfig from "astro-runtime-config";
export default defineConfig({
integrations: [
+ astroRuntimeConfig(),
],
});Contributing
This package is structured as a monorepo:
playgroundcontains code for testing the packagepackagecontains the actual package
Install dependencies using pnpm:
pnpm i --frozen-lockfileStart the playground and package watcher:
pnpm devYou can now edit files in package. Please note that making changes to those files may require restarting the playground dev server.
Licensing
MIT Licensed. Made with ❤️ by Dovias.