mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-19 22:08:58 +00:00
new examples
This commit is contained in:
18
node/nuxtjs/static/app/app.vue
Normal file
18
node/nuxtjs/static/app/app.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<script setup lang="ts">
|
||||
const config = useRuntimeConfig();
|
||||
|
||||
onMounted(() => {
|
||||
console.log('TEST_ENV_VAR:', config.public.testEnvVar);
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<NuxtRouteAnnouncer />
|
||||
<div style="padding: 20px; background: #f0f0f0; margin: 20px; border-radius: 8px;">
|
||||
<h2>Environment Variable Test</h2>
|
||||
<p><strong>TEST_ENV_VAR:</strong> {{ config.public.testEnvVar }}</p>
|
||||
</div>
|
||||
<NuxtWelcome />
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user