question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom Database Hash

See original GitHub issue

Is 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:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Atinuxcommented, Feb 25, 2021

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.

1reaction
NozomuIkutacommented, Feb 24, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found