I switched from Buffer to Pallyy as my social media management platform. It's built with Vue & Nuxt and Tim Bennetto gave me a discount for sharing his tool in this week's issue. Thanks Tim 💚.
👉🏻 In the first episode of the DejaVue podcast, Michael Thiessen and Alexander Lichter discuss Server-Side Rendering with Vue and Nuxt.
🔥 Nuxt Tip: Use Environment-Specific Configurations
It sometimes happens that you need to have different configurations for different environments in your Nuxt.js application. I'll show you how to use environment-specific Nuxt configurations.
Let's start with a simple nuxt.config.tsnuxt.config.ts file:
For demonstration purposes, let's assume that we want to have a different title in development and production. You might be tempted to use an environment variable like this:
This approach is not recommended by Nuxt, instead, you should use the fully typed, per-environment overrides like $production$production, $development$development or $test$test in your nuxt.confignuxt.config file. Here's how you can do it:
The $development$development key is a special key that allows you to define a Nuxt configuration for the development environment. This configuration is merged with the default configuration when running in development mode. This mechanism is powered by c12, a smart configuration loader available in the UnJS ecosystem.
If you're authoring layers, you can also use the $meta$meta key to provide metadata that you or the consumers of your layer might use.
How's it going? I was planning to release the update for Reusable Components yesterday, but things haven't gone as planned. Instead, I will be launching it next week. I need a just a bit more time to make sure that the quality is up to my standards. As I've been updating the course and re-writing all the content and step-by-step refactorings, I've also been able to simplify a few things. It's just like refactoring a piece of code, and it's one of the greatest feelings. I also looked at how much content is in there, and it looks like it will be similar to the Clean Components Toolkit. Lots of great content on how to write highly reusable components, simplified and updated — I can't wait to release the update next week! Oh, and one more thing: I'm doing a podcast with Alex Lichter ! It's called Deja Vue and we'll be releasing the first ...
Monday, November 20, 2023 I'd pay $10K up front # Matt Mullenweg : "Sales of the 100-year plan so far: 0. Hundreds of people filled out the form, though. I think we really messed something up in the follow-up, including not making it self-serve to start. Will review and try again. It's an important promise to us." # I'm very much a customer for this service. It would be worth $10K for to buy 100 years of persistence for my web writing. A simple easy to understand service that helps get the process started. # I transfer scripting.com to Automattic as registrar. # I upload the contents from S3 to Automattic server. Static files, HTML, feeds, images, code. # Automattic provides an API to keep the files updated and so I can add to them as long as I'm still writing. # The files are publicly accessible over HTTP. # Automattic agrees to renew the domain for 100 years, and manage access to the files, with reasona...
评论
发表评论