Nuxt 3 Crash Course #13 - Dynamic Server Routes

preview_player
Показать описание
⭐⭐ Watch the whole course now (without ads) on Net Ninja Pro:

🐱‍💻 Access the course files on GitHub:

🐱‍💻 Vue 3 Tutorial:

🐱‍💻 Tailwind Tutorial:

Рекомендации по теме
Комментарии
Автор

If this did not work for you this is what I did to fix the problem. First in the [code].js file, in your uri variable it needs to be apikey not apiKey. Then in your .env file add NUXT_ to the beginning of the api key like so, NUXT_CURRENCY_API_KEY. Then in your nuxt.config.ts file add NUXT_ to the beginning of the value like so, Hope this helps.

Jburdt
Автор

Be warned about the difference between "apiKey" and apikey" with the capital "K" - it is do matter if you follow the given example

matemolnar
Автор

Thank you, your videos are very clear and I've learned a lot!

annedatema
Автор

You could also use env var names with the prefix "NUXT_" and then you don't need to get them with `proces.env.<VAR_NAME>`. In your case it could be "NUXT_CURRENCY_KEY=12345" in the .env file. In the nuxt.config.ts file you just set an empty string for `currencyKey`.

annedatema
Автор

Thank you. That was the easiest dive in into vue.js

gaznador
Автор

Thanks for the videos.
SSR would be a great content to cover.

thiagopetherson
Автор

Net ninja ...
Could you please upload a video explaining multiple recursion. I'm sick and tired of not understanding it for a long time. You have a unique approach so please 🙏🏼

sonamtseringsherpa
Автор

Thanks. Please create a series for creating a portfolio/blog with Payload CMS.

taunado
Автор

If you get [nuxt] [request error] [unhandled] [401] [GET] error, try to use "apikey" parameter instead of "apiKey".

Vladekt
Автор

Do not forget to add ".env" to your ".gitignore" not to regret it later.

YilmazDurmaz
Автор

Hi! When I'm trying to fetch data with useFetch('/api/something') and then use $fetch in the server/api/something something is going wrong and the data can't be fetched....When I'm fetching data straight from the vue file everything is ok. Any thoughts?

tasosanton
Автор

If we have API functions, are there any plans to use Swagger for documentation?

ConstantineKa
Автор

'apiKey' is wrong, it has to be 'apikey'... oh, K

bartoszsowa
Автор

My Nuxtjs project only runs when it's in the desktop folder. When I'm in another folder on my computer I get an error: 500 [vite-node] [ERR_INVALID_URL_SCHEME] at

wilfrieddon
Автор

currencyKey: process.env.CURRENCY_API_KEY
ERROR [nuxt] [request error] [unhandled] [401] [GET]

alves