mirror of
https://github.com/ArthurDanjou/arthome.git
synced 2026-01-14 12:14:33 +01:00
Remove logs
This commit is contained in:
@@ -15,3 +15,6 @@ NUXT_OPEN_WEATHER_LANG=
|
|||||||
NUXT_OPEN_WEATHER_UNITS=
|
NUXT_OPEN_WEATHER_UNITS=
|
||||||
|
|
||||||
NUXT_HUB_PROJECT_KEY=
|
NUXT_HUB_PROJECT_KEY=
|
||||||
|
|
||||||
|
NUXT_PUBLIC_MAPBOX_STYLE=
|
||||||
|
NUXT_PUBLIC_MAPBOX_ACCESS_TOKEN=
|
||||||
@@ -2,7 +2,6 @@ import type { OpenWeatherType } from '~~/types/types'
|
|||||||
|
|
||||||
export default defineCachedEventHandler(async (event) => {
|
export default defineCachedEventHandler(async (event) => {
|
||||||
const config = useRuntimeConfig(event)
|
const config = useRuntimeConfig(event)
|
||||||
console.log(config.openWeather)
|
|
||||||
|
|
||||||
const openWeather = await $fetch<OpenWeatherType>('https://api.openweathermap.org/data/2.5/weather', {
|
const openWeather = await $fetch<OpenWeatherType>('https://api.openweathermap.org/data/2.5/weather', {
|
||||||
params: {
|
params: {
|
||||||
@@ -13,7 +12,6 @@ export default defineCachedEventHandler(async (event) => {
|
|||||||
units: config.openWeather.units,
|
units: config.openWeather.units,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
console.log(openWeather)
|
|
||||||
return {
|
return {
|
||||||
weather: openWeather.weather[0].description,
|
weather: openWeather.weather[0].description,
|
||||||
city: openWeather.name,
|
city: openWeather.name,
|
||||||
|
|||||||
Reference in New Issue
Block a user