Skip to content

Instantly share code, notes, and snippets.

@New-dev0
Last active November 5, 2025 13:30
Show Gist options
  • Select an option

  • Save New-dev0/7d331a3985a16719dd315069d81c089b to your computer and use it in GitHub Desktop.

Select an option

Save New-dev0/7d331a3985a16719dd315069d81c089b to your computer and use it in GitHub Desktop.
switchx shadcn
/** @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