-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add astroENVConfig Utility, and migrate namespaceplugin to addVitePlu…
…gin AIK Utility (#162) Co-authored-by: Jacob Jenkins <[email protected]> Co-authored-by: Paul Valladares <[email protected]>
- Loading branch information
1 parent
ebad8d2
commit b8eba07
Showing
5 changed files
with
41 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import type { AstroConfig } from "astro"; | ||
import { defineUtility } from "astro-integration-kit"; | ||
|
||
|
||
export const addAstroEnvConfig = defineUtility("astro:config:setup")( | ||
( | ||
params, | ||
config: AstroConfig['experimental']['env'] | ||
) => { | ||
|
||
// Update Astro Config with Environment Variables (`astro:env`) | ||
params.updateConfig({ | ||
experimental: { env: config } | ||
}); | ||
|
||
}) |