Something went wrong. Try again.
Tour the Atmosphere. Switch clients, share universal links, browse any PDS.
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041import type { NextConfig } from "next";
const nextConfig: NextConfig = { images: { remotePatterns: [ { protocol: 'https', hostname: 'cdn.bsky.app', }, ], }, // /explorer is an obvious typo / synonym for the canonical /explore // route. Send it (and every nested path under it) to the matching // /explore URL so deep links keep working when someone fat-fingers // or copies from a referrer that included the "r". // // /universal-links is the old path for the universal links landing // page; it now lives at the shorter /links. The old URL still works // by redirecting so existing shares and bookmarks don't break. // Apple fetches the universal-links association from a dot-folder path the // App Router cannot host, so it is served by a route handler and rewritten // here. The handler answers 404 until IOS_APP_TEAM_ID is configured. async rewrites() { return [ { source: '/.well-known/apple-app-site-association', destination: '/api/apple-app-site-association', }, ]; }, async redirects() { return [ { source: '/explorer', destination: '/explore', permanent: true }, { source: '/explorer/:path*', destination: '/explore/:path*', permanent: true }, { source: '/universal-links', destination: '/links', permanent: true }, ]; },};
export default nextConfig;