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

24 lines
358 B
Vue
Raw Normal View History

2016-12-21 19:51:43 +00:00
<template>
<div>
<pre>{{ env }}</pre>
<p>object:</p>
<pre>{{ processEnv }}</pre>
<NuxtLink to="/">
Home
</NuxtLink>
</div>
2016-12-21 19:51:43 +00:00
</template>
<script>
export default {
2016-12-25 20:09:14 +00:00
layout: 'custom-env',
data() {
return { processEnv: process.env.object }
},
2017-10-31 13:26:19 +00:00
asyncData({ env }) {
delete env.object
2016-12-21 19:51:43 +00:00
return { env }
}
}
</script>