import type { NextConfig } from "next"; import path from "path"; const nextConfig: NextConfig = { basePath: "/mobile", typescript: { ignoreBuildErrors: true, }, experimental: { optimizePackageImports: ["lucide-react"], }, turbopack: { root: path.resolve(import.meta.dirname || __dirname), }, async redirects() { return [ { source: "/auth/callback", destination: "/mobile/auth/callback", permanent: false, basePath: false, }, ]; }, }; export default nextConfig;