Custom Database Hash
See original GitHub issueIs your feature request related to a problem? Please describe.
I want to change the database hash.
Describe the solution you’d like
I can customize db-hash.
Describe alternatives you’ve considered
add custom hash option in content.
Additional context
nuxt.config.js
export default {
content: {
dbHash: 'hogefuga'
}
}
Similar options in nuxt.js: https://github.com/nuxt/nuxt.js/blob/691f21c6832323902d899b56566dd97d63683528/packages/config/src/config/generate.js#L17-L22
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Custom hash function - import possible? - Auth0 Community
Learn how to enable automatic user migration with your custom database. This will import the user into Auth0 with their existing password, using ......
Read more >Custom Hash List - TechDocs
The Custom Hash List is an UnQLite embedded NoSQL database. ... converts flat files of hashes (one hash per line) into database format....
Read more >Hash function and custom C type for PostgreSQL
The hash function in this context is used to tranform the set of all possible type values into a substantially smaller set of...
Read more >Custom hash function - onedrive - Stack Overflow
OneDrive 365 propose only QuickXorHash as a hashing algorithm. The goal is to reduce data transfer load; I am investing some time to...
Read more >Customizing hashing settings - Magnet Forensics
AXIOM Process can create hash values in MD5 and SHA1 formats. In AXIOM Process, on the Tools menu, click Settings. In Hashing >...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t think it is a good idea, if this is related to the fact that you want to delete the file after generation, I rather give the option to not generate any content code on the frontend.
Looking up the source code, it seems to become possible by letting Nuxt content uses user option in the part below.
https://github.com/nuxt/content/blob/b2f45db0b16ecdf21981f6eff0afdc851829ccbe/packages/content/lib/index.js#L174-L195
Then, the hash is used when fetching data in plugin.
https://github.com/nuxt/content/blob/4ba67b4522f11db97ec2f8c161bd2aa98655db37/packages/content/templates/plugin.static.js#L10
https://github.com/nuxt/content/blob/4ba67b4522f11db97ec2f8c161bd2aa98655db37/packages/content/templates/plugin.static.js#L33-L43
This would be a chance for you to contribute by submitting a PR. 😀 By the way, I’m not sure what is a use case of changing db hash, so I appreciate if you share yours for example.