Chore : add test page
This commit is contained in:
+2
-2
@@ -4,8 +4,8 @@ export default defineNuxtConfig({
|
|||||||
ssr: true,
|
ssr: true,
|
||||||
runtimeConfig: {
|
runtimeConfig: {
|
||||||
public: {
|
public: {
|
||||||
endpoint:
|
welcomeMessage: "Hello",
|
||||||
process.env.NUXT_PUBLIC_ENDPOINT || "https://playtest.legonzaur.fr/api", // can be overridden by NUXT_PUBLIC_ENDPOINT environment variable
|
endpoint: "https://playtest.legonzaur.fr/api", // can be overridden by NUXT_PUBLIC_ENDPOINT environment variable
|
||||||
discordLoginEndpoint: process.env.NUXT_PUBLIC_DISCORD_LOGIN_ENDPOINT,
|
discordLoginEndpoint: process.env.NUXT_PUBLIC_DISCORD_LOGIN_ENDPOINT,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
const config = useRuntimeConfig();
|
||||||
|
config.public.welcomeMessage;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
{{ config.public.welcomeMessage }}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
Reference in New Issue
Block a user