Adnan Erlansyah
How the best way or easy to import a component on the page of NuxtJS3?
@kapa.ai
Why I can't import this component? although I've already made it and the path folder has already appropriate.
<template>
<div>
<Map />
</div>
</template>
<script setup>
import { Map } from "~/components/ui";
</script>
<style scoped>
</style>
9 replies
Will the environment variables from the project can be fiddle on the browser by user?
@kapa.ai how about if I set the variable on the client-side or composable that has installed environment variable on it. Will the variable can be console.log in the browser by user or just can be see it if I run it from code?
10 replies
How to access data env in composable?
@kapa.ai If so, then I wouldn't be able to encrypt the data in client side, although I need it to use the secret key to be able encrypt and decrypt from the client side. I just want to take the environment variables without any user know about the key.
30 replies
How to access data env in composable?
how about if I want to access from this object in nuxt config? @kapa.ai
appConfig: {
nodeEnv: process.env.NODE_ENV,
baseURL: process.env.BASE_URL,
servicesAPI: process.env.SERVICE_API ?? '',
vueAppMode: process.env.VUE_APP_MODE,
bypassKey: process.env.BYPASS_KEY ?? '',
},
30 replies
Custom Loading Screen when the browser is still process rendering
@kapa.ai I think it's still work for me, the state isLoading of useLoadingIndicator is still false although I've already refreshed and delayed the network of the browser.
10 replies