Nuxt/test/fixtures/with-config/pages/env.vue
2017-10-31 14:26:19 +01:00

22 lines
348 B
Vue

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