Migration to nuxt 4
Used codemods CLI and reworked most alias'd path that stopped working
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { z } from "zod"
|
||||
import { serverSupabaseClient } from "#supabase/server"
|
||||
import type { Category } from "~/models/Category"
|
||||
import type { Category } from "@@/models/Category"
|
||||
|
||||
const paramsSchema = z.object({
|
||||
id: z.coerce.number().positive().int()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { z } from "zod"
|
||||
import { serverSupabaseClient } from "#supabase/server"
|
||||
import type { Category} from "~/models/Category";
|
||||
import { categorySchema } from "~/models/Category"
|
||||
import type { Category} from "@@/models/Category";
|
||||
import { categorySchema } from "@@/models/Category"
|
||||
|
||||
const paramsSchema = z.object({
|
||||
id: z.coerce.number().positive().int()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { serverSupabaseClient } from "#supabase/server";
|
||||
import { type Category, categorySchema } from "@/models/Category";
|
||||
import { type Category, categorySchema } from "@@/models/Category";
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
const client = await serverSupabaseClient(event)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { serverSupabaseClient } from "#supabase/server";
|
||||
import { z } from "zod"
|
||||
import type { Category } from "~/models/Category";
|
||||
import type { Category } from "@@/models/Category";
|
||||
|
||||
const querySchema = z.object({
|
||||
id: z.coerce.number().positive().int().optional(),
|
||||
|
||||
Reference in New Issue
Block a user