init
All checks were successful
Deploy / build (push) Successful in 43s

This commit is contained in:
alsaze
2025-11-19 20:37:10 +03:00
parent 45f01f129c
commit 4c13799f44
8 changed files with 215 additions and 112 deletions

View File

@@ -3,7 +3,7 @@ import { defineEventHandler, getQuery } from 'h3'
export default defineEventHandler(async (event) => {
try {
const { search } = getQuery(event)
const apiUrl = process.env.VITE_MY_API_BASE_URL!
const apiUrl = import.meta.env.VITE_MY_API_BASE_URL!
return await $fetch<Posts>(`${apiUrl}/posts?title_like=${search}`, {
headers: {

View File

@@ -2,7 +2,7 @@ import { createError, defineEventHandler, sendError } from 'h3'
export default defineEventHandler(async (event) => {
try {
const apiUrl = process.env.VITE_MY_API_BASE_URL!
const apiUrl = import.meta.env.VITE_MY_API_BASE_URL!
return await $fetch<Users>(`${apiUrl}/users`, {
headers: {