Tips to reduce Edge requests & Vercel costs?
New user
Conditionnal nuxt ui button size with tailwind media query
How can I process some data on server-side and send it to the client-side
why does my plugin code gets executed for client side navigation?
page:start
hook, gets executed for every client side navigation and the import.meta.client
is set to false....Is a nuxt3 fullstack framework ?
Location of data
Error: ENOENT: no such file or directory, access '/tmp/nitro/worker-1615786-1.sock' | Nuxt
Nuxt UI3 UButton block
Failed to resolve import
node_modules
and did npm i
again, but this did not solve it.
```[plugin:vite:import-analysis] Failed to resolve import "./accordion" from "node_modules/@nuxt/ui/dist/runtime/types/index.js?v=5c224cb9". Does the file exist?
/frontend/node_modules/@nuxt/ui/dist/runtime/types/index.js:1:16...Cannot access before initialization
Auto import utils in server recursively
Strange error when trying to run dev mode on a fresh install
nuxthub
:
```
ERROR The requested module './dev2.mjs' does not provide an export named 'createNuxtDevServer' 17:35:40
...Default emit definition
How to type the nuxt module?
Setting cookie with sendRedirect
useSession
then I am redirecting them back to where they came from using sendRedirect
. However that results in their session NOT being set. If I simply comment out the sendRedirect
everything works fine though.Code splitting and auto-import
~/layouts/default.vue
and I want to move header and footer to separate files as standalone components (for code clarify). Header and footer only used in that layout and anywhere else, so placing it in ~/components
is a bad idea, because of header and footer will be autoimported in the whoole app (I think, ~/components
must be used only for reusable components). If I place header.vue
and footer.vue
inside ~/layouts
near layout file (default.vue
), nuxt will interpreate it as a standalone layouts. My solution is to place layout files inside non autoimported folder and reexport it in ~/layouts
, so I created folder ~/import/layouts/default
and three files header.vue
, footer.vue
and layout.vue
(main layout file where footer and header are manually imported), then I create default.ts
inside ~/layouts
directory and reexport layout like this:
```html
<script setup lang="ts">
// ~/import/layouts/default/layout.vue...Use a library as a plugin

how to apply css modules to hash css selectors in nuxtjs3?