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: set noindex header for build asset dir /_nuxt #174

Merged
merged 3 commits into from
Dec 17, 2024

Conversation

harlan-zw
Copy link
Contributor

@harlan-zw harlan-zw commented Dec 17, 2024

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Some users may find some of their assets within the asset build directory /_nuxt (or the directory itself) or getting indexed by Google.

For example just search google for inurl:/_nuxt

In almost all instances this is undesirable the only exception may be images that you'd like indexed but these should be included within your /public directory anyway.

This won't fix the indexing if users are using certain web servers which will automatically create directories for these files which is the case for some.

It's important to note that we DO NOT put this in robots.txt as it will cause issues with your pages being crawled and the module will now warn you if you do this.

@harlan-zw harlan-zw merged commit 1253cca into main Dec 17, 2024
1 check passed
@harlan-zw harlan-zw deleted the feat/noindex-nuxt-build-dir branch December 17, 2024 16:01
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.

1 participant