Orbis
Orbis
NNuxt
Created by HardWare on 11/14/2024 in #❓・help
Docker nuxt $fetch and useFetch
In production set your backend url to your api domain. Works server and client side
11 replies
NNuxt
Created by HardWare on 11/14/2024 in #❓・help
Docker nuxt $fetch and useFetch
What do you mean with unable to change?
11 replies
NNuxt
Created by HardWare on 11/14/2024 in #❓・help
Docker nuxt $fetch and useFetch
You should alsways take the "public" adress/host. In your case api.localhost. the service name php will only work server-side. Services from a compose stack know each other by the service name, but if you send html and js to your browser and fetch there, your browser does not know php as adress, because it's on your machine and not inside the stack
11 replies
NNuxt
Created by Merite on 11/13/2024 in #❓・help
Add custom config in nuxt ui button
does it solve your problem? my french is a bit rusty these days 🙂
88 replies
NNuxt
Created by Merite on 11/13/2024 in #❓・help
Add custom config in nuxt ui button
you neeed to mention kapa.ai with @ to get an answer
88 replies
NNuxt
Created by Abou on 11/12/2024 in #❓・help
How to use svg
22 replies
NNuxt
Created by Abou on 11/12/2024 in #❓・help
How to use svg
maybe just use last option? 🙂
22 replies
NNuxt
Created by Abou on 11/12/2024 in #❓・help
How to use svg
sorry, this message was draft
22 replies
NNuxt
Created by Abou on 11/12/2024 in #❓・help
How to use svg
as img:
<img src="/path/to/svg />
<img src="/path/to/svg />
inline:
<svg>
<g>...</g>
</svg>
<svg>
<g>...</g>
</svg>
as icon (possible via usocss or nuxt icon, example is unocss):
<div class="i:my-custom-svg-as-icon />
<div class="i:my-custom-svg-as-icon />
or unplugin icons or as vue component:
<!-- example.vue -->
<template>
<svg>
<g>...</g>
</svg>
</tempalte>

<!-- usage -->
<script setup>
import Example from './example.vue'
</script>

<template>
<Example />
</template>
<!-- example.vue -->
<template>
<svg>
<g>...</g>
</svg>
</tempalte>

<!-- usage -->
<script setup>
import Example from './example.vue'
</script>

<template>
<Example />
</template>
22 replies
NNuxt
Created by Abou on 11/12/2024 in #❓・help
How to use svg
What do you mean by using svg with nuxt? As img? Inline? As icon?
22 replies
NNuxt
Created by Mightsrain on 10/30/2024 in #❓・help
Possible to update API path in static build without rebuild.
with build and running node yes. but not with static build
13 replies
NNuxt
Created by Mightsrain on 10/30/2024 in #❓・help
Possible to update API path in static build without rebuild.
not possible if generating the site
13 replies
NNuxt
Created by Mightsrain on 10/30/2024 in #❓・help
Possible to update API path in static build without rebuild.
Yes. You can online set env at build time with generate. There is no real workaround. You would have to request the "env" from any "api" at browser (like a request). Or intercept the html and write soweit payload to the window. Any chance to not generate static files?
13 replies
NNuxt
Created by Mightsrain on 10/30/2024 in #❓・help
Possible to update API path in static build without rebuild.
You can find and replace in source files. Not recommended
13 replies
NNuxt
Created by Mightsrain on 10/30/2024 in #❓・help
Possible to update API path in static build without rebuild.
Not possible with generate/static build. This is not a nuxt limitation. All the hmtl an js is already build and the Browser cant read any env from the host Maschine. Without any request or backend/ssr not possible.
13 replies
NNuxt
Created by Raphael on 10/10/2024 in #❓・help
Why does UButton icon 404 error unless icon is separately pre-loaded?
Mhhh. Do you have a minimal reproduction?
7 replies
NNuxt
Created by Imran on 10/14/2024 in #❓・help
Nuxt dev server from code server
If you want to temporarly deploy your dev state somewhere, you might better use a tunnel (e.g. localtunnel)
20 replies
NNuxt
Created by Imran on 10/14/2024 in #❓・help
Nuxt dev server from code server
You need to proxy that too
20 replies
NNuxt
Created by Imran on 10/14/2024 in #❓・help
Nuxt dev server from code server
I think vite uses ws at some port notify hmr
20 replies
NNuxt
Created by Imran on 10/14/2024 in #❓・help
Nuxt dev server from code server
Dont load = HMR or initially?
20 replies