build and format
This commit is contained in:
2
next-env.d.ts
vendored
2
next-env.d.ts
vendored
@@ -1,6 +1,6 @@
|
|||||||
/// <reference types="next" />
|
/// <reference types="next" />
|
||||||
/// <reference types="next/image-types/global" />
|
/// <reference types="next/image-types/global" />
|
||||||
import "./.next/dev/types/routes.d.ts";
|
import "./.next/types/routes.d.ts";
|
||||||
|
|
||||||
// NOTE: This file should not be edited
|
// NOTE: This file should not be edited
|
||||||
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "cinematales",
|
"name": "ruya",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
|
|||||||
@@ -11,4 +11,3 @@ export default function Home() {
|
|||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { createNavigation } from 'next-intl/navigation'
|
import { createNavigation } from "next-intl/navigation";
|
||||||
import { routing } from './routing'
|
import { routing } from "./routing";
|
||||||
|
|
||||||
export const { Link, redirect, usePathname, useRouter, getPathname } = createNavigation(routing)
|
export const { Link, redirect, usePathname, useRouter, getPathname } = createNavigation(routing);
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
'use client'
|
"use client";
|
||||||
|
|
||||||
import { useLocale } from 'next-intl'
|
import { useLocale } from "next-intl";
|
||||||
import { Direction, getDirection } from './direction'
|
import { Direction, getDirection } from "./direction";
|
||||||
|
|
||||||
export function useDirection(): Direction {
|
export function useDirection(): Direction {
|
||||||
const locale = useLocale()
|
const locale = useLocale();
|
||||||
return getDirection(locale)
|
return getDirection(locale);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { clsx, type ClassValue } from 'clsx'
|
import { clsx, type ClassValue } from "clsx";
|
||||||
import { twMerge } from 'tailwind-merge'
|
import { twMerge } from "tailwind-merge";
|
||||||
|
|
||||||
export function cn(...inputs: ClassValue[]) {
|
export function cn(...inputs: ClassValue[]) {
|
||||||
return twMerge(clsx(inputs))
|
return twMerge(clsx(inputs));
|
||||||
}
|
}
|
||||||
|
|||||||
10
src/proxy.ts
10
src/proxy.ts
@@ -1,8 +1,8 @@
|
|||||||
import createMiddleware from 'next-intl/middleware'
|
import createMiddleware from "next-intl/middleware";
|
||||||
import { routing } from './i18n/routing'
|
import { routing } from "./i18n/routing";
|
||||||
|
|
||||||
export default createMiddleware(routing)
|
export default createMiddleware(routing);
|
||||||
|
|
||||||
export const config = {
|
export const config = {
|
||||||
matcher: '/((?!api|trpc|_next|_vercel|.*\\..*).*)',
|
matcher: "/((?!api|trpc|_next|_vercel|.*\\..*).*)",
|
||||||
}
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user