-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.vue
More file actions
41 lines (36 loc) · 911 Bytes
/
app.vue
File metadata and controls
41 lines (36 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<template>
<NuxtLoadingIndicator />
<ClientOnly>
<NuxtLayout>
<NuxtPage />
<UNotifications />
</NuxtLayout>
<template #fallback>
<div class="flex h-screen justify-center items-center">
Please wait...
</div>
</template>
</ClientOnly>
</template>
<script setup lang="ts">
// if(process.env.NODE_ENV === "production"){
// console.log = function(){}
// console.info = function(){}
// console.debug = function(){}
// }
useSeoMeta({
titleTemplate: (title) => {
return title ? `test midtrans` : ''
},
})
const midtransClient = useRuntimeConfig().public.midtransClientSandbox
const midtransLink = 'https://app.sandbox.midtrans.com/snap/snap.js'
useHead({
script: [
{
src: midtransLink,
"data-client-key": midtransClient, // Replace with your key
async: true, // Ensure the script loads asynchronously
}]
})
</script>