astro:config
virtual module
#1070
Closed
florian-lefebvre
started this conversation in
Proposal
Replies: 3 comments 12 replies
-
This is a great idea, I'd love to see something like this in Astro. That's always the first virtual module I end up adding is one that exposes all this stuff! |
Beta Was this translation helpful? Give feedback.
0 replies
-
What are some examples of when you would use this? Integration already have these values available to them. Would you use this in a component? |
Beta Was this translation helpful? Give feedback.
12 replies
-
This proposal has been accepted and moved to Stage 2 #1099 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
Summary
Expose common Astro config properties to users and integrations
Background & Motivation
It happens quite often in userland to need the
trailingSlash
setting, or the base etc. Things that are available atimport.meta.env
and some that are not. The goal is to unify the way we expose this data.Many integrations need this data and have to create virtual modules for this anwyays.
Goals
Example
Beta Was this translation helpful? Give feedback.
All reactions