mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 17:37:14 +00:00
22 lines
348 B
Vue
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>
|