mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-18 03:35:17 +00:00
e7cc2757c3
Co-authored-by: Alexander Lichter <manniL@gmx.net>
24 lines
360 B
Vue
24 lines
360 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>
|