This commit is contained in:
parent
d1ee94e5c4
commit
2984e3780a
@ -18,7 +18,7 @@ export default defineNuxtConfig({
|
|||||||
'vue-yandex-maps/nuxt',
|
'vue-yandex-maps/nuxt',
|
||||||
],
|
],
|
||||||
yandexMaps: {
|
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'],
|
css: ['~/assets/css/main.css', '~/assets/scss/main.scss'],
|
||||||
i18n: {
|
i18n: {
|
||||||
|
|||||||
@ -3,9 +3,9 @@ import axios from 'axios'
|
|||||||
import { defineEventHandler, readBody } from 'h3'
|
import { defineEventHandler, readBody } from 'h3'
|
||||||
|
|
||||||
export default defineEventHandler(async (event) => {
|
export default defineEventHandler(async (event) => {
|
||||||
const merchantId = process.env.BSPB_MERCHANT_ID!
|
const merchantId = import.meta.env.BSPB_MERCHANT_ID!
|
||||||
const merchantPassword = process.env.BSPB_MERCHANT_PASSWORD!
|
const merchantPassword = import.meta.env.BSPB_MERCHANT_PASSWORD!
|
||||||
const apiUrl = process.env.BSPB_API_URL!
|
const apiUrl = import.meta.env.BSPB_API_URL!
|
||||||
|
|
||||||
const assetsStorage = useStorage('assets:server')
|
const assetsStorage = useStorage('assets:server')
|
||||||
|
|
||||||
|
|||||||
@ -4,8 +4,8 @@ import { defineEventHandler, readBody } from 'h3'
|
|||||||
export default defineEventHandler(async (event) => {
|
export default defineEventHandler(async (event) => {
|
||||||
try {
|
try {
|
||||||
const data = await readBody(event)
|
const data = await readBody(event)
|
||||||
const apiUrl = process.env.VITE_YANDEX_B2B_BASE_URL!
|
const apiUrl = import.meta.env.VITE_YANDEX_B2B_BASE_URL!
|
||||||
const token = process.env.VITE_YANDEX_B2B_TOKEN!
|
const token = import.meta.env.VITE_YANDEX_B2B_TOKEN!
|
||||||
|
|
||||||
const response = await axios.post(
|
const response = await axios.post(
|
||||||
`${apiUrl}/location/detect`,
|
`${apiUrl}/location/detect`,
|
||||||
|
|||||||
@ -5,8 +5,8 @@ import { defineEventHandler, readBody } from 'h3'
|
|||||||
export default defineEventHandler(async (event): Promise<YandexPvzResponse | { error: string }> => {
|
export default defineEventHandler(async (event): Promise<YandexPvzResponse | { error: string }> => {
|
||||||
try {
|
try {
|
||||||
const data = await readBody(event)
|
const data = await readBody(event)
|
||||||
const apiUrl = process.env.VITE_YANDEX_B2B_BASE_URL!
|
const apiUrl = import.meta.env.VITE_YANDEX_B2B_BASE_URL!
|
||||||
const token = process.env.VITE_YANDEX_B2B_TOKEN!
|
const token = import.meta.env.VITE_YANDEX_B2B_TOKEN!
|
||||||
|
|
||||||
const response = await axios.post<YandexPvzResponse>(
|
const response = await axios.post<YandexPvzResponse>(
|
||||||
`${apiUrl}/pickup-points/list`,
|
`${apiUrl}/pickup-points/list`,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user