Last active
November 5, 2025 13:30
-
-
Save New-dev0/7d331a3985a16719dd315069d81c089b to your computer and use it in GitHub Desktop.
switchx shadcn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** @type {import('next').NextConfig} */ | |
| const nextConfig = { | |
| experimental: { | |
| turbo: { | |
| rules: { | |
| // Custom loader rules for Turbopack | |
| }, | |
| resolveAlias: { | |
| // Add any custom aliases here if needed | |
| }, | |
| }, | |
| largePageDataBytes: 128 * 100000, | |
| }, | |
| images: { | |
| unoptimized: true, | |
| remotePatterns: [ | |
| { | |
| protocol: 'https', | |
| hostname: '**', | |
| }, | |
| { | |
| protocol: 'http', | |
| hostname: '**', | |
| }, | |
| ], | |
| }, | |
| typescript: { | |
| ignoreBuildErrors: true, | |
| }, | |
| eslint: { | |
| ignoreDuringBuilds: true, | |
| }, | |
| reactStrictMode: false, | |
| allowedDevOrigins: ['*.loca.lt', '*.modal.host', '*.w.modal.host'], | |
| output: 'standalone', | |
| async headers() { | |
| return [ | |
| { | |
| source: '/:path*', | |
| headers: [ | |
| { key: 'Access-Control-Allow-Origin', value: '*' }, | |
| { key: 'Access-Control-Allow-Methods', value: 'GET,POST,PUT,DELETE,OPTIONS,PATCH' }, | |
| { key: 'Access-Control-Allow-Headers', value: '*' }, | |
| { key: 'Access-Control-Allow-Credentials', value: 'true' }, | |
| ], | |
| }, | |
| ] | |
| }, | |
| webpack: (config, { dev, isServer }) => { | |
| if (dev) { | |
| config.performance = { | |
| hints: false, | |
| maxEntrypointSize: 512000, | |
| maxAssetSize: 512000 | |
| } | |
| } | |
| return config | |
| }, | |
| productionBrowserSourceMaps: true, | |
| } | |
| export default nextConfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment