Understanding Hide Key Information in NUXT

Asked 1 years ago, Updated 1 years ago, 97 views

When I hit the API from NUXT, if I don't set the key setting well, I will see it in several places, so I would like to check if it really happens to me, but I don't know where it is...

I would appreciate it if you could tell me exactly where it is written.

For example, the expression that you can see from this browser or

Hide microCMS API keys only when generating with NxtJS - Qiita

You can check it from the network at the bottom here.

Using env Files in Nxt.js (Hands On for Beginners) - Qiita

vue.js security nuxt.js

2022-09-30 14:30

1 Answers

I think .nuxt/dist/client will be created when you run nuxt build, but if the api key is leaked to the client, you can probably find it if you grep it there.

My understanding is that the client's js built in webpack is the contents of this directory.(I'm not 100% confident.It's probably about the same.)


2022-09-30 14:30

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.