From 2984e3780a659d1e8e6eae48eef5534bc67c0004 Mon Sep 17 00:00:00 2001 From: alsaze Date: Wed, 19 Nov 2025 21:12:47 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BA=D0=B0=D1=80=D1=82=D1=8B=20=D0=BF=D0=B2?= =?UTF-8?q?=D0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nuxt.config.ts | 2 +- server/api/bspb.ts | 6 +++--- server/api/yandex_location.ts | 4 ++-- server/api/yandex_pvz.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 8af6600..ca172a8 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -18,7 +18,7 @@ export default defineNuxtConfig({ 'vue-yandex-maps/nuxt', ], yandexMaps: { - apikey: process.env.VITE_YANDEX_MAPS_TOKEN, + apikey: import.meta.env.VITE_YANDEX_MAPS_TOKEN, }, css: ['~/assets/css/main.css', '~/assets/scss/main.scss'], i18n: { diff --git a/server/api/bspb.ts b/server/api/bspb.ts index 099e7f9..51989e6 100644 --- a/server/api/bspb.ts +++ b/server/api/bspb.ts @@ -3,9 +3,9 @@ import axios from 'axios' import { defineEventHandler, readBody } from 'h3' export default defineEventHandler(async (event) => { - const merchantId = process.env.BSPB_MERCHANT_ID! - const merchantPassword = process.env.BSPB_MERCHANT_PASSWORD! - const apiUrl = process.env.BSPB_API_URL! + const merchantId = import.meta.env.BSPB_MERCHANT_ID! + const merchantPassword = import.meta.env.BSPB_MERCHANT_PASSWORD! + const apiUrl = import.meta.env.BSPB_API_URL! const assetsStorage = useStorage('assets:server') diff --git a/server/api/yandex_location.ts b/server/api/yandex_location.ts index 9948507..868c41d 100644 --- a/server/api/yandex_location.ts +++ b/server/api/yandex_location.ts @@ -4,8 +4,8 @@ import { defineEventHandler, readBody } from 'h3' export default defineEventHandler(async (event) => { try { const data = await readBody(event) - const apiUrl = process.env.VITE_YANDEX_B2B_BASE_URL! - const token = process.env.VITE_YANDEX_B2B_TOKEN! + const apiUrl = import.meta.env.VITE_YANDEX_B2B_BASE_URL! + const token = import.meta.env.VITE_YANDEX_B2B_TOKEN! const response = await axios.post( `${apiUrl}/location/detect`, diff --git a/server/api/yandex_pvz.ts b/server/api/yandex_pvz.ts index bd6ca1e..1d45925 100644 --- a/server/api/yandex_pvz.ts +++ b/server/api/yandex_pvz.ts @@ -5,8 +5,8 @@ import { defineEventHandler, readBody } from 'h3' export default defineEventHandler(async (event): Promise => { try { const data = await readBody(event) - const apiUrl = process.env.VITE_YANDEX_B2B_BASE_URL! - const token = process.env.VITE_YANDEX_B2B_TOKEN! + const apiUrl = import.meta.env.VITE_YANDEX_B2B_BASE_URL! + const token = import.meta.env.VITE_YANDEX_B2B_TOKEN! const response = await axios.post( `${apiUrl}/pickup-points/list`,