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

22 lines
349 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>
<nuxt-link to="/">Home</nuxt-link>
</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-03-01 15:03:46 +00:00
asyncData ({ env }) {
delete env.object
2016-12-21 19:51:43 +00:00
return { env }
}
}
</script>