---
title: "Comment by Colin Bate on \"Vue vs. Svelte vs. React\" | Hashnode"
description: "You mention that you need to keep your Fauna key safe, which I agree with. However, you then embed those keys into your app. Those keys will ship as part of you"
url: "https://hashnode.com/posts/vue-vs-svelte-vs-react/61f460926bb59d5767db452c/comment/61faa27898d3a620773e4f93"
---

[Discussion](https://hashnode.com/posts/vue-vs-svelte-vs-react/61f460926bb59d5767db452c)

Comment [Vue vs. Svelte vs. React](https://hashnode.com/posts/vue-vs-svelte-vs-react/61f460926bb59d5767db452c)

[Colin Bate](https://hashnode.com/@colinbate)

[Feb 2, 2022](https://hashnode.com/posts/vue-vs-svelte-vs-react/61f460926bb59d5767db452c/comment/61faa27898d3a620773e4f93)

You mention that you need to keep your Fauna key safe, which I agree with. However, you then embed those keys into your app. Those keys will ship as part of your JS files.

Since the keys you created in this example are admin keys I'm guessing that would give someone full access to your data. You might be ok with some restricted read-only keys. Otherwise, you may want to move your data access to something like a serverless function.

The [Vue CLI documentation](https://cli.vuejs.org/guide/mode-and-env.html#environment-variables) specifically says not to store private or secret information in the `.env` files.

[Shadid Haque](https://hashnode.com/@shadid)

[Feb 2, 2022](https://hashnode.com/posts/vue-vs-svelte-vs-react/61f460926bb59d5767db452c/comment/61faa27898d3a620773e4f93#reply-61fab1a398d3a620773e51f0)

yup, I agree, revealing those keys can allow potential bad actors to access your data. A best practice would be to limit it to only read access then put them in an environment variable.

[JTK](https://hashnode.com/@heyJTK)

[Feb 2, 2022](https://hashnode.com/posts/vue-vs-svelte-vs-react/61f460926bb59d5767db452c/comment/61faa27898d3a620773e4f93#reply-61facb2c43e34d1181697a0f)

Yeah in continuity with the last comment, there's a reason the entire article takes place on localhost ;) the objective of this code is me to look at all three frameworks, this is not something intended to be deployed, nor is it structured as a "real" app beyond Hello World complexity would be

[Colin Bate](https://hashnode.com/@colinbate)

[Feb 2, 2022](https://hashnode.com/posts/vue-vs-svelte-vs-react/61f460926bb59d5767db452c/comment/61faa27898d3a620773e4f93#reply-61fadc2043e34d1181697bf7)

[JTK](https://hashnode.com/@heyJTK) That is fine, and I'm glad that you didn't deploy this. I had noticed that you didn't provide an online working version. But I wanted to mention it because you do encourage others to follow along (with boilerplate repos included) and if people do deploy what they created, they are putting their Fauna keys at risk.
