Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(assets): support for layers #618

Merged
merged 10 commits into from
Mar 20, 2024
Merged

feat(assets): support for layers #618

merged 10 commits into from
Mar 20, 2024

Conversation

arashsheyda
Copy link
Member

@arashsheyda arashsheyda commented Mar 15, 2024

close #560

Screenshot 2024-03-15 at 8 11 20 PM

Copy link

cloudflare-pages bot commented Mar 15, 2024

Deploying nuxt-devtools with  Cloudflare Pages  Cloudflare Pages

Latest commit: 79d072d
Status: ✅  Deploy successful!
Preview URL: https://3bc10ed5.nuxt-devtools.pages.dev
Branch Preview URL: https://feat-layers-assets.nuxt-devtools.pages.dev

View logs

@arashsheyda arashsheyda changed the title Feat/layers assets feat(assets): support for layers Mar 15, 2024
const publicDir = resolve(nuxt.options.srcDir, nuxt.options.dir.public)
const layerDirs = [publicDir, ...nuxt.options._layers.map(layer => resolve(layer.cwd, layer.config?.public ?? 'public'))]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public is not presented in the type - can you double check with this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll go with hard-coded one first, feel free to update it later if there is a better way to do so

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@antfu okay, thanks

@antfu antfu merged commit b8572b6 into main Mar 20, 2024
3 checks passed
@antfu antfu deleted the feat/layers-assets branch March 20, 2024 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix: assets tab not showing assets from layers
2 participants