mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
fix(astro): refine assets prefix typing (#11020)
This commit is contained in:
parent
10739fc3de
commit
2e2d6b7442
2 changed files with 6 additions and 1 deletions
5
.changeset/seven-crabs-burn.md
Normal file
5
.changeset/seven-crabs-burn.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Add type declarations for `import.meta.env.ASSETS_PREFIX` when defined as an object for handling different file types.
|
2
packages/astro/client.d.ts
vendored
2
packages/astro/client.d.ts
vendored
|
@ -12,7 +12,7 @@ interface ImportMetaEnv {
|
|||
/**
|
||||
* The prefix for Astro-generated asset links if the build.assetsPrefix config option is set. This can be used to create asset links not handled by Astro.
|
||||
*/
|
||||
readonly ASSETS_PREFIX: string;
|
||||
readonly ASSETS_PREFIX: string | Record<string, string>;
|
||||
/**
|
||||
* This is set to the site option specified in your project’s Astro config file.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue