acidjazz
acidjazz
Explore posts from servers
NNuxt
Created by acidjazz on 8/6/2024 in #❓・help
server api route catchall
is it possible to do something like this with one file? and not have to softlink?
❯ lss server/api/token
drwxr-xr-x k staff 128 B Sat Aug 3 23:19:51 2024  .
drwxr-xr-x k staff 288 B Sun Aug 4 01:11:30 2024  ..
.rw-r--r-- k staff 1.1 KB Sun Aug 4 04:01:22 2024  [...id].ts
lrwxr-xr-x k staff 10 B Sat Aug 3 23:19:51 2024  index.ts ⇒ [...id].ts
❯ lss server/api/token
drwxr-xr-x k staff 128 B Sat Aug 3 23:19:51 2024  .
drwxr-xr-x k staff 288 B Sun Aug 4 01:11:30 2024  ..
.rw-r--r-- k staff 1.1 KB Sun Aug 4 04:01:22 2024  [...id].ts
lrwxr-xr-x k staff 10 B Sat Aug 3 23:19:51 2024  index.ts ⇒ [...id].ts
1 replies
NNuxt
Created by acidjazz on 1/19/2023 in #❓・help
layout logic failing
<doc-menu v-if="useRoute().name === 'doc-article'">
<slot />
</doc-menu>
<slot v-else />
<doc-menu v-if="useRoute().name === 'doc-article'">
<slot />
</doc-menu>
<slot v-else />
this generates JS errors and fires off the page vue component twice Uncaught DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
5 replies