Nuxt/test/fixtures/with-config/pages/env.vue
pooya parsa e7cc2757c3 refactor: update eslint-config to 1.x
Co-authored-by: Alexander Lichter <manniL@gmx.net>
2019-07-10 15:15:49 +04:30

24 lines
360 B
Vue

<template>
<div>
<pre>{{ env }}</pre>
<p>object:</p>
<pre>{{ processEnv }}</pre>
<NuxtLink to="/">
Home
</NuxtLink>
</div>
</template>
<script>
export default {
layout: 'custom-env',
data () {
return { processEnv: process.env.object }
},
asyncData ({ env }) {
delete env.object
return { env }
}
}
</script>