Nuxt/test/fixtures/with-config/pages/env.vue

24 lines
358 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>