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

24 lines
360 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 }
},
asyncData ({ env }) {
delete env.object
2016-12-21 19:51:43 +00:00
return { env }
}
}
</script>