Alexander Lichter
Alexander Lichter
  • 47
  • 247 069
Compatibility Date in Nuxt 4 and Nitro
📅 Huh? Were you also asked to provide a "compatibilityDate" when upgrading to Nuxt 3.12 or later? And also wondered what it is about? Then fret no more! In this video, the whole concept behind compatibilityDate will be explained - why it is necessary, if you should set it already and how providers play a role!
---
Key points:
✨ Why was compatibility date introduced?
⚙️ What does it change for me?
‼️ Should I set it?
📣 @danielroe 's Summary
---
Links:
🔗 Docs nuxt.com/docs/api/nuxt-config#compatibilitydate
📺 DejaVue #013 - The Road to Nuxt 4 (with Daniel Roe) - share.transistor.fm/s/caa4a6a4
📺 @DejaVueFm #015 - Ten Years of Vue (with Evan You) - share.transistor.fm/s/6b6bab42
Don't forget to hit that "Subscribe" button, ring the notification bell and give a thumbs up!
🌐 Connect further:
Website: www.lichter.io
Twitter/X: TheAlexLichter
Twitch: www.twitch.tv/TheAlexLichter
---
Chapters:
00:00 Intro
00:31 Why compatibilityDate?
04:28 Tooling around it
04:51 Fine-grained compatibility dates
05:57 Other APIs and runtimes using compatibility dates
06:20 What compatibilityDate is not for
07:42 Daniel Roe's summary
08:23 Summary
Переглядів: 1 017

Відео

Patching Packages - The ULTIMATE Guide
Переглядів 1,6 тис.16 годин тому
🩹 Found a bug in a package and want to fix it locally? Waiting for a fix that wasn't released yet? Don't worry, you can apply all these locally to the packages in your node_modules. In this video, a guide for all major package managers showcases how you can patch your packages locally, why "doing it manually" is not a good idea and which consequences local patches might have. Worth watching for...
NEW Folder Structure in Nuxt 4
Переглядів 9 тис.14 днів тому
📂Nuxt's folder structure is well-known to everyone using the meta framework. But in Nuxt 4, it will be slightly changed. In this video, you'll learn how the change looks like, why the team decided to change the structure and how to easily migrate over. So easy, that it'll be done in just a couple of minutes Don't believe me? Then tune in now! 👀 Key points: 4️⃣ Why the new folder structure? ✨ Ho...
Dynamic Rendering in 2024 - SSR only for Crawlers?
Переглядів 2,3 тис.21 день тому
🔍️ SEO is crucial for public-facing applications, resulting in the need of SSR for modern SPAs. But, why not enable SSR only for crawlers so they can get all the data while the users see a plain SPA? This approach is called "Dynamic Rendering"! If this is a good idea, what Google thinks about it and whether you should use it or not will be answered in this video! #ssr #dynamic rendering Links 🔗...
Composition API vs. Options API - One API to Rule Them All?!
Переглядів 3,6 тис.28 днів тому
💪 This week was a lot of discussion about the two Vue APIs - the Composition and the Options API - on Social Media. Thus, I took some time to assess the shared thoughts discussions and also went a step further: I asked you why you prefer the Options API and wanted to figure out pain points you have with the Composition API. The results are all distilled in this video, including what the Vue tea...
Building a plain SPA with Nuxt!?
Переглядів 3,7 тис.Місяць тому
🗝️ Single Page Applications are amazing! Sometimes you simply don't need SSR at all, especially when building behind authentication. While you can use plain Vue to build a fully client-side rendered application, Nuxt is also capable of building good old SPAs (unlike other meta frameworks 👀). In this video, you'll learn how it works, what you can set up and why you should use Nuxt for it! Key po...
Dynamic Components in Vue
Переглядів 6 тис.Місяць тому
🃏 The more complex scenarios applications have to cover, the more the need for dynamic components increases. Using different tabs, icons, modals with different content or blocks defined in a CMS - all these cases are typical for dynamic components. But how to implement them in an easy way and which options are there? You'll find out in this video! Key points: 3️⃣ Three different ways to impleme...
Adding a new nuxt.com logo with useCookie and routing
Переглядів 2,7 тис.Місяць тому
🖌️ Seen the new "uwu" logo trend across frameworks and tools like Vite or Vue! Of course, there is also such a logo for Nuxt.js - it only has to be added to the website - and that's exactly what we are doing in this video. From cloning the repo to implementing the feature and sending the PR. Join on the journey and see the thought process, steps and the implementation of the new Nuxt uwu logo. ...
Migrate to Nuxt 4 NOW!?
Переглядів 9 тис.Місяць тому
↪️ Soon it is time for Nuxt 4, the next major version of the vue-based meta framework! While the team is still working on changes and improvements, you can already migrate to set and implemented changes *today*. Don't believe me? Check out how in this video 🎉 Key points: 4️⃣ Condensed info about the Nuxt 4 major version ✨ How to migrate already and opt in to breaking changes ⚙️ The background b...
Store files and K/Vs in Nuxt and Nitro - Powered by unstorage
Переглядів 3 тис.2 місяці тому
💾 Reading and writing information is important for an application, be it for storage, caching or more. But especially with all the available runtimes and platform (think serverless, edge, ...) and storage options, it became more and more complex. Luckily, useStorage, powered by the unstorage package, can help us there! Let's see how! Key points: 🔢 Various useStorage examples you can use in your...
Stream VOD #006 - Building an Association Manager with Nuxt.js
Переглядів 2,9 тис.2 місяці тому
Finally I found time to start a project I can stream again! We are building an association manager live on Twitch www.twitch.tv/TheAlexLichter/. Next stream planned for Monday, 29th April, 1pm CEST. GET 20% off NUXT UI PRO with the CODE "LICHTER" until the end of June. Redeem at lichter.link/nuxt-ui/ Highlights: 🛠 Creating a Nuxt app from scratch 🌟 Trying out Nuxt UI and Nuxt Hub 🤔 Wrangling wi...
Nuxt Instance Unavailable - Async Code in Vue and Nuxt with the Composition API (+ raffle 🎁)
Переглядів 3 тис.2 місяці тому
🤸‍♂️ Especially when working a lot with composables and Nuxt, some of you might've seen the "Nuxt instance unavailable" error somewhere along the road. And while there is commonly a link to the docs, there is more behind it! Learn in this video what the error message means, how to fix it with four different ways and which one is the best to use! Also don't forget to comment with what you built ...
Aliases in Nuxt 3 (+ raffle 🎁)
Переглядів 2,3 тис.2 місяці тому
💻 Relative paths are common when importing files (if you have to). But especially when moving the containing file around, updating paths can be tedious. Luckily, Nuxt gives us the option to create aliases for often used folders and even provides own ones! In this video, you'll figure out which are there, the caveats (aka when to *NOT* us them) and how to customize them. Key points: ⌨️ Which ali...
Nuxt Test Utils - A Primer to Testing in Nuxt
Переглядів 6 тис.3 місяці тому
🃏 Testing is important for any application. And at a certain complexity, manual testing is simply not possible anymore. Luckily, writing Unit Tests and E2E Tests for your Nuxt application isn't as difficult as it may seems. In this video, we will dive into the different testing types and build tests for your demo application in less than 20 minutes! Key points: 🔧 How to set up @nuxt/test-utils ...
How to use Nuxt Layers to encapsulate your code
Переглядів 6 тис.3 місяці тому
🔗 Nuxt Layers are a powerful option to share code across applications or even encapsulate code by feature or DDD-style in projects. But how do they work and how to set them up? Learn all of thati n this video! Key points: 🔧 How to set up layers 🧠 Understand use cases for them 👀 Building a simple layer architecture from scratch Links: 🔗 Docs - nuxt.com/docs/guide/going-further/layers 🔗 Code - gi...
Faster Nuxt Builds? 🤔 No problem ✅
Переглядів 2,7 тис.3 місяці тому
Faster Nuxt Builds? 🤔 No problem ✅
Integrating WebSockets in Nuxt and Nitro
Переглядів 6 тис.3 місяці тому
Integrating WebSockets in Nuxt and Nitro
😲 An environment-aware Nuxt Configuration
Переглядів 4,3 тис.3 місяці тому
😲 An environment-aware Nuxt Configuration
useAsyncData vs. useFetch 🤯
Переглядів 7 тис.4 місяці тому
useAsyncData vs. useFetch 🤯
Avoid losing Reactivity in your Vue Application
Переглядів 6 тис.4 місяці тому
Avoid losing Reactivity in your Vue Application
Stream VOD #005 - Nuxt Open Source and Q&A
Переглядів 6824 місяці тому
Stream VOD #005 - Nuxt Open Source and Q&A
Stream VOD #004 - Bare-bone Nuxt and Nitro blog
Переглядів 6064 місяці тому
Stream VOD #004 - Bare-bone Nuxt and Nitro blog
The Nuxt Plugin Object Syntax - Wins for Perf, DX and Logic!
Переглядів 3,3 тис.4 місяці тому
The Nuxt Plugin Object Syntax - Wins for Perf, DX and Logic!
Stream VOD #003 - Reviewing PRs, Filing Bugs and Upgrading Components
Переглядів 7444 місяці тому
Stream VOD #003 - Reviewing PRs, Filing Bugs and Upgrading Components
Custom $fetch and Repository Pattern in Nuxt 3
Переглядів 11 тис.4 місяці тому
Custom $fetch and Repository Pattern in Nuxt 3
Nuxt 3.10 - Speed up your build time with sharedPrerenderData
Переглядів 3,2 тис.5 місяців тому
Nuxt 3.10 - Speed up your build time with sharedPrerenderData
Class Serialization with SSR in Nuxt - no more POJO error messages!
Переглядів 2,7 тис.5 місяців тому
Class Serialization with SSR in Nuxt - no more POJO error messages!
Organize your Composition API code (2k subscriber special)
Переглядів 20 тис.5 місяців тому
Organize your Composition API code (2k subscriber special)
Why you should use useState()
Переглядів 13 тис.5 місяців тому
Why you should use useState()
The new Vue 3.4 feature NOBODY talks about… (+ raffle)
Переглядів 4,8 тис.5 місяців тому
The new Vue 3.4 feature NOBODY talks about… ( raffle)

КОМЕНТАРІ

  • @Lannnister
    @Lannnister Годину тому

    ohhh I was so looking forward to hearing about astrology 😁 - Great content, thanks Alex!

  • @MohamedFawzy-qh4yu
    @MohamedFawzy-qh4yu 4 години тому

    how to manage the unit tests (vitest + coverage) of the different layers?

  • @kostiantynkarlovych280
    @kostiantynkarlovych280 7 годин тому

    I don't seem to have the server folder from the base layer working on the new project structure in the final application

  • @RussPainter8
    @RussPainter8 8 годин тому

    I like your videos, but i don't get this one at all. I think it could really use a concrete example

  • @QueeeeenZ
    @QueeeeenZ 9 годин тому

    Thank you for educating us. I think this explanation should also be included in the docs. There is very little in the docs, you explained it in much more detail here. Or maybe just link to this video in the docs.

  • @FaradayAcademy
    @FaradayAcademy 10 годин тому

    Thanks 💯

  • @dp-vn4yx
    @dp-vn4yx 12 годин тому

    🤩🤩

  • @TheAlexLichter
    @TheAlexLichter 12 годин тому

    Did you see "compatibilityDate" already?

  • @korbinperry6906
    @korbinperry6906 13 годин тому

    By chance could you elaborate just a little, you mentioned the "flash avoidance strategy" and I perked up a bit. Our fairly large site has just migrated to Nuxt and we've experienced some flashing, I suspect mostly actually due to SSR / CSR issues and some changes we need to make, but perhaps this is more common than I know 😅

  • @MyOwnPufferFish
    @MyOwnPufferFish 16 годин тому

    To me this is a prime example of providing a useful tool to the user (useFetch), but actually learning to use it properly, as well as learning the associated $fetch and such makes the process more complex in the end and can lead to errors. Unfortunately, I've encountered this kind of problem several times with the Vue ecosystem

    • @TheAlexLichter
      @TheAlexLichter 16 годин тому

      Which other scenarios come to your mind there in the Vue ecosystem?

    • @MyOwnPufferFish
      @MyOwnPufferFish 16 годин тому

      @@TheAlexLichter Well off the top of my head, the template shorthands (v-bind: and : , v-on and @...). Since not everybody use the same notation it makes the code harder to read and not as consistent (I like that v-bind and v-on are explicit, so I tend to use those, but many people don't). Then you'll get stuff like ":key" which have nothing to do with v-bind and it's all pretty confusing. Also this should be resolved eventually so it might be an unfair point, but the option/composition api is confusing whenever looking for solutions to a problem because you first have to sort out the replies where people use the same API and whether they use script setup etc... Sure, an experience vue dev might not be bothered by it but it's the kinds of small things that makes getting into Vue more frustrating that it should be

  • @overnightmares
    @overnightmares День тому

    sorry if i missed this but let's say i have a "shared components" layer and a "consuming app" . if nuxt/i18n is needed, do i install it on both the layer and the consuming app? and is pnpm a must for this?

  • @frallen9787
    @frallen9787 День тому

    Please make a video about the comprehensive testing of e2e.

  • @user-fy7vk4df4t
    @user-fy7vk4df4t День тому

    Am I the only one who gets error like "Block-scoped variable 'useComponentComposable()' used before its declaration.ts-plugin()" ? It's strange that on video there is no error

    • @TheAlexLichter
      @TheAlexLichter День тому

      Do you have an example of code (e.g. a playground link)? Normal functions do not need to be declared before used (hoisting) but arrow functions and variables holding fn's (const abc = function(){}) do.

  • @TakakiMiyajima
    @TakakiMiyajima День тому

    Awesome! We have three teams and would like to put each project on layers (like team1-pj, team2-pj, team3-pj) Can we keep those projects in SPA and deploy them separately? if so, I'd love to know how to do that!

    • @TheAlexLichter
      @TheAlexLichter День тому

      You should be able to deploy each layer on your own, sure! Or create a combination of e.g. 2 of them and then deploy it as spa (see ua-cam.com/video/7Lr0QTP1Ro8/v-deo.html )

  • @muhammadibragimov3753
    @muhammadibragimov3753 2 дні тому

    If you are using .value in computed that you wrote in body its work fine and than requests not spends many times

    • @TheAlexLichter
      @TheAlexLichter День тому

      Was already mentioned here but that will *still* create a mem-leak client-side because the composable can't be cleaned up!

  • @garethwedley5741
    @garethwedley5741 2 дні тому

    I use an external API in client side calls. Would be great to see how these can be mocked in e2e tests with playwright.

    • @TheAlexLichter
      @TheAlexLichter День тому

      Ideally, E2E shouldn't have anything mocked but a demo env. If the external API doesn't provide that then you *could* consider replacing it with your own response via `page.route` or mock things via nitro and replace the API URL via runtime config.

  • @edgeuplink
    @edgeuplink 2 дні тому

    what about .env ?

  • @TheDamage1982
    @TheDamage1982 2 дні тому

    Hello. Alexander, please, tell us how to organize the storage of client files (photos of users, products, etc.) in Nuxt with the possibility of their further use on the frontend

  • @shehanrangana1844
    @shehanrangana1844 3 дні тому

    This is awesome man. Thanks!

  • @fuadagayev-mg7fk
    @fuadagayev-mg7fk 3 дні тому

    Powerfull , in nuxtjs 3 understand layers

  • @jTiKey
    @jTiKey 4 дні тому

    Too bad it doesn't seem to work with the watcher 😢

    • @TheAlexLichter
      @TheAlexLichter 4 дні тому

      Only work with useFetch/useAsyncData. But definitely doable with watchers to implement in your own

  • @Fido1hn
    @Fido1hn 6 днів тому

    Thanks so mych for this videos Alex. It really helps a lot.

  • @ElFerBlocks
    @ElFerBlocks 6 днів тому

    I think , if somebody use object oriented programing with type script , a folder is missing . This folder have to be in app folder and it's name classes (app/classes) . I wonder, does somebody use object oriented programing with nuxt?? . May be I one of this guys

    • @TheAlexLichter
      @TheAlexLichter 6 днів тому

      It isn’t super popular and I personally don’t. But luckily you can simply create a services / classes / … folder 👌🏻

  • @khaledsanny4817
    @khaledsanny4817 6 днів тому

    How to do this with $fetch. In a tenant.global.ts middleware, I search for a "tenant" existence, I want to cache it. But I need to do the call in a conditionnal block (if). You teached us to refrein from using useFetch inside blocks right ? The {immediate: false} and await execute() doesn't work (data not cached)

  • @randomtimessomehow
    @randomtimessomehow 6 днів тому

    What the hell, how come I needed this yesterday for the first time and this is exactly when you released this video 😃

  • @EvestDev
    @EvestDev 6 днів тому

    ooh frick, thats so cool 🤩, how did i not known about this O.O. Thx for the super cool video :)) No i don't have more excuses for anything that doesn't work XD

    • @TheAlexLichter
      @TheAlexLichter 6 днів тому

      You are welcome! Exactly 👀 and a good chance to send in PRs too 👌🏻

  • @zaghloul-soft
    @zaghloul-soft 6 днів тому

    good job ... can I ask that does NitroJS (server of NuxtJS) have a Dependency Injection like NestJS at the constructor level from the app singleton or perRequest ?

    • @TheAlexLichter
      @TheAlexLichter 6 днів тому

      Not DI directly because Nitro focuses on composability. Instead you can add things to the context via Nitro plugins or wrap handlers in different handlers 👌🏻

    • @zaghloul-soft
      @zaghloul-soft 6 днів тому

      @@TheAlexLichter aha understood ... thanks 👍

  • @sven.van.reenen
    @sven.van.reenen 7 днів тому

    Question! Great video btw if i créate a layer folder will it work out of the box with this new update? Question two haha If i have an object in My api response can i store it as ref even when the rest is shallowref?

    • @TheAlexLichter
      @TheAlexLichter День тому

      1) Yes, it will! 2) How/Why would you want to store it? You could use a computed that's based on it for example. Or a watcher "transferring" the value you want over

    • @sven.van.reenen
      @sven.van.reenen День тому

      Awesome! Yeah never mind my second question 😅

  • @yunusemrefersiz2848
    @yunusemrefersiz2848 7 днів тому

    An Other great video ty Alex

  • @michaelpumo83
    @michaelpumo83 7 днів тому

    This is legit useful - thanks so much for a great video.

  • @lbmgary
    @lbmgary 7 днів тому

    holy crap... how do I not know things? :| Thanks bruv!

  • @rifatno1
    @rifatno1 7 днів тому

    There is a problem. I'm using one component outside layout and one inside layout. Both depends on the same state. When I change the value from inside layout, the value of the component outside layout doesn't update in SSR. <Navigation /> // this component doesn't update when the value is changed in layout <NuxtLayout><NuxtPage/></NuxtLayout> // the vaule is changed here The problem solves when I use <Navigation /> inside layout

    • @TheAlexLichter
      @TheAlexLichter День тому

      That is correct as SSR is "top to bottom" and there is no "real" workaround there I'm afraid. You can't update what is already rendered during SSR. See github.com/nuxt/nuxt/issues/19258 for more details

    • @rifatno1
      @rifatno1 День тому

      @@TheAlexLichter Thanks for the info

  • @djxak
    @djxak 7 днів тому

    Yarn and Pnpm patch flows do not make sense to me. How could I test my changes and know that it is time to create a patch, if I must edit not the live version of the package, but a temporary version of it? And, unfortunately, most packages can't be patched this way anyway. Because you need to patch their sources, not their distribution package.

  • @NicolasVanAarsen
    @NicolasVanAarsen 7 днів тому

    Oh, I didn't know that, nice tip!

  • @QueeeeenZ
    @QueeeeenZ 7 днів тому

    How do you patch those packages that ship minified code? They only have a dist/ in node_modules which is minified and impossible to edit. Also how would you patch larger projects with TypeScript that requires building?

    • @TheAlexLichter
      @TheAlexLichter 7 днів тому

      Minified: if you find the corresponding source via debugging there, otherwise fork + publish a temp NPM package under your name. Same for having TS support too etc

  • @user-sj7tf2yv3m
    @user-sj7tf2yv3m 7 днів тому

    I'm looking forward to a video about error handling in nuxt. The documentation recommends using "createError", but this does not work with navigation. For some reason, "fatal" does not affect anything. When navigating to a page, only showError works well. There is an "abortNavigation" in "middleware". It shows the error page but the url does not change. I'm very confused about all this ( __-------__ Я с нетерпением жду видео об обработке ошибок в nuxt. В документации рекомендуется использовать "createError", но это не работает с навигацией. "fatal" почему-то ни на что не влияет. При переходе на страницу хорошо работает только showError. В "middleware" есть "abortNavigation". Он показывает страницу ошибки но url не изменяется. Я очень запуталась во всём этом (

  • @alimaher1
    @alimaher1 7 днів тому

    Waited for this for so long time. Thanks, Alex ♥

  • @TheAlexLichter
    @TheAlexLichter 7 днів тому

    Which package manager do you usually prefer and why? 👀

    • @lovelyboy8056
      @lovelyboy8056 7 днів тому

      pnpm because it’s a new. It’s use less space on ssd and it faster than yarn and npm how I read about it

    • @namesiz
      @namesiz 7 днів тому

      pnpm because I easily solve all the problems I encounter (which I cannot solve in others)

    • @slava_trushkin
      @slava_trushkin 6 днів тому

      pnpm because it handles monorepos way better than others

    • @EvestDev
      @EvestDev 6 днів тому

      Bun, its fast and it has a lot of cool built in features :)

    • @randomtimessomehow
      @randomtimessomehow 6 днів тому

      pnpm, because I had some weird npm bug once, didn't know how to fix it so I switched lol also heard it's faster

  • @jamiemarshall8284
    @jamiemarshall8284 9 днів тому

    how is your class AwesomeFramework available to the the payload.ts. I have ts errors everywhere.

    • @TheAlexLichter
      @TheAlexLichter 8 днів тому

      Because of the auto-import of `utils` files. Maybe restarting Volar/the Dev server helps? ☺️

    • @jamiemarshall8284
      @jamiemarshall8284 8 днів тому

      @@TheAlexLichter thanks, I hadn't noticed u put the class in utils.

  • @freekeys
    @freekeys 9 днів тому

    Nuxt 4 please provide cross platform tech at top level so we don't use react native 🥲😂

    • @TheAlexLichter
      @TheAlexLichter 8 днів тому

      I *wish* it'd be that easy. But funnily, this will be covered in a soon-to-be-released podcast episode on www.youtube.com/@DejaVueFM with a *very* special guest.

    • @freekeys
      @freekeys 8 днів тому

      @@TheAlexLichter great 🎉

  • @hnccox
    @hnccox 9 днів тому

    Thank you, it finally clicked!

  • @umbrellacoro9953
    @umbrellacoro9953 9 днів тому

    Hi Alex! Thank you for the video. I have a question. When I built a Nuxt 3 app, your strategy 4 did not work with $fetch. It did not replace the API URL. Do you have any suggestions on how to resolve this?

    • @TheAlexLichter
      @TheAlexLichter 9 днів тому

      How do you mean "it did not replace the API URL"? 🤔

    • @umbrellacoro9953
      @umbrellacoro9953 8 днів тому

      "When I make a request, it doesn't replace myProxyUrl with 'xx.xx.xx.xx' in nuxt.config.ts."

    • @umbrellacoro9953
      @umbrellacoro9953 8 днів тому

      @@TheAlexLichter "When I make a request, it doesn't replace myProxyUrl with in nuxt.config.ts."

    • @umbrellacoro9953
      @umbrellacoro9953 8 днів тому

      When I make a request, it doesn't replace myProxyUrl with in nuxt.config

  • @yunusemrefersiz2848
    @yunusemrefersiz2848 10 днів тому

    Ty

  • @schwangtv7448
    @schwangtv7448 10 днів тому

    would be so cool if I could actually use this in pinia, in my client side app without that annoying warning.

    • @TheAlexLichter
      @TheAlexLichter 9 днів тому

      Using useFetch/useAsyncData in pinia is not really recommended so it'll be tricky 🙈

  • @yohannb5910
    @yohannb5910 10 днів тому

    Hi Alexander, do you know how to share auto imports in between server and app folder ? i have validation schemas and types that i wish to used in both context with auto import. i did not find how to do it. Auto importing files in Nitro outside of the server folder is not working for me.

    • @TheAlexLichter
      @TheAlexLichter 9 днів тому

      See ua-cam.com/video/0_hZymmpUHQ/v-deo.html ☺️

    • @yohannb5910
      @yohannb5910 9 днів тому

      @@TheAlexLichter reimporting is nice solution. For now, with Nuxt 4 hierarchy folder, i just added auto import from root folder as '../shared/**/**' in both Nitro and Nuxt auto import config, it would be nice to have a common auto import config though, auto importing 2 times the same shared folder looks a big fragile.

  • @mnmb961
    @mnmb961 10 днів тому

    Is it a good practice if i were to intiate db connection via plugin server so that it can be used throughout the apps ? Thanks

    • @TheAlexLichter
      @TheAlexLichter 10 днів тому

      I’d do this in a nitro plugin ☺️

    • @mnmb961
      @mnmb961 9 днів тому

      @@TheAlexLichter can we do the object syntax for nitro plugin also as in nuxt plugin ?

  • @erxweo
    @erxweo 10 днів тому

    Have you considered FSD in any way?

    • @TheAlexLichter
      @TheAlexLichter 10 днів тому

      Yes! That’s what I’ve shown with /layers! See also ua-cam.com/video/fr5yo3aVkfA/v-deo.html

    • @erxweo
      @erxweo 10 днів тому

      @@TheAlexLichter thank you very much

  • @user-wy3mn3jf8q
    @user-wy3mn3jf8q 10 днів тому

    IMO Composition API structuring sucks

    • @TheAlexLichter
      @TheAlexLichter 10 днів тому

      Why? ☺️

    • @user-wy3mn3jf8q
      @user-wy3mn3jf8q 10 днів тому

      @@TheAlexLichter just think Options API is more convenient

    • @TheAlexLichter
      @TheAlexLichter 10 днів тому

      Until you “outgrow it” but yeah. Also talked about that recently @ ua-cam.com/video/7sBev_SxWGI/v-deo.html

  • @nyambe
    @nyambe 10 днів тому

    can the app.vue in /app be named index.vue? that would make sense

    • @TheAlexLichter
      @TheAlexLichter 9 днів тому

      I don't think so at the moment. Also it might be confusing because it covers *all pages* (if no pages/ exist) and not just the index page.

    • @nyambe
      @nyambe 9 днів тому

      @@TheAlexLichter I see