In Astro added a new location for asset management src/assets. When this feature is enabled, the images added to this folder should be relatively referenced to the content folder/file.
Example:
---title:'First post'description:'Lorem ipsum dolor sit amet'pubDate:'Jul 08 2022'heroImage:'../../assets/blog-placeholder-1.jpg'---

In Astro added a new location for asset management `src/assets`. When this feature is enabled, the images added to this folder should be relatively referenced to the content folder/file.
Example:
```markdown
---
title: 'First post'
description: 'Lorem ipsum dolor sit amet'
pubDate: 'Jul 08 2022'
heroImage: '../../assets/blog-placeholder-1.jpg'
---

```
https://docs.astro.build/en/guides/assets/
<!-- github-sync-id:1837993649 -->
Check if we can allow multiple asset folders in the frontMatter.content.publicFolder setting
Add the astro:assets as a frontMatter.content.publicFolder option. If this is used, the files will be added relative to the content folder/page.
Breadcrumb
- [ ] Check if we can allow multiple asset folders in the `frontMatter.content.publicFolder` setting
- [x] ~Add the `astro:assets` as a `frontMatter.content.publicFolder` option. If this is used, the files will be added relative to the content folder/page.~
- [x] Breadcrumb
<!-- github-comment-id:1666661124 -->
To use the new Astro Assets feature, you will need to configure the frontMatter.content.publicFolder setting with the following value: astro:assets.
~To use the new Astro Assets feature, you will need to configure the `frontMatter.content.publicFolder` setting with the following value: `astro:assets`.~
<!-- github-comment-id:1666677875 -->
Thinking more about it, to be more future-proof, it would be better to enhance the frontMatter.content.publicFolder setting as I just read the following on the Astro docs:
We recommend storing all images to be optimized in the src/assets/ directory to make use of our official ~/assets alias, although this location is optional.
Right now the setting expects a string, but might be better to be an object which defines the folder + if it needs to be a relative path or not.
Thinking more about it, to be more future-proof, it would be better to enhance the `frontMatter.content.publicFolder` setting as I just read the following on the Astro docs:
> We recommend storing all images to be optimized in the src/assets/ directory to make use of our official ~/assets alias, *although this location is optional*.
Right now the setting expects a string, but might be better to be an object which defines the folder + if it needs to be a relative path or not.
```json
{
"frontMatter.content.publicFolder": {
"path": "src/assets",
"relative": true
}
}
```
<!-- github-comment-id:1666860974 -->
The above setting is implemented in the latest beta. During the welcome experience, you will also have the option to pick the asset folder.
The above setting is implemented in the latest beta. During the welcome experience, you will also have the option to pick the asset folder.

<!-- github-comment-id:1666945121 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
In Astro added a new location for asset management
src/assets. When this feature is enabled, the images added to this folder should be relatively referenced to the content folder/file.Example:
https://docs.astro.build/en/guides/assets/
frontMatter.content.publicFoldersettingAdd theastro:assetsas afrontMatter.content.publicFolderoption. If this is used, the files will be added relative to the content folder/page.To use the new Astro Assets feature, you will need to configure thefrontMatter.content.publicFoldersetting with the following value:astro:assets.Thinking more about it, to be more future-proof, it would be better to enhance the
frontMatter.content.publicFoldersetting as I just read the following on the Astro docs:Right now the setting expects a string, but might be better to be an object which defines the folder + if it needs to be a relative path or not.
The above setting is implemented in the latest beta. During the welcome experience, you will also have the option to pick the asset folder.