no-ai--next.config.js
· 791 B · JavaScript
Originalformat
const nextConfig = {
async redirects() {
return [
{
source: '/(.*)',
has: [
{
type: 'header',
key: 'User-Agent',
value:
'(.*(AdsBot-Google|Amazonbot|anthropic-ai|Applebot|ArcMobile|AwarioRssBot|AwarioSmartBot|Bytespider|CCBot|ChatGPT-User|Claude-Web|ClaudeBot|cohere-ai|DataForSeoBot|Diffbot|FacebookBot|FriendlyCrawler|Google-Extended|Googlebot-Image|Googlebot-Image|GoogleOther|GPTBot|ImagesiftBot|img2dataset|magpie-crawler|Meltwater|msnbot-media|omgili|omgilibot|peer39_crawler|PerplexityBot|PiplBot|Seekr|scoop.it|yandex|YouBot).*)',
},
],
destination: 'https://hil-speed.hetzner.com/10GB.bin',
permanent: false,
},
]
},
}
module.exports = nextConfig
| 1 | const nextConfig = { |
| 2 | async redirects() { |
| 3 | return [ |
| 4 | { |
| 5 | source: '/(.*)', |
| 6 | has: [ |
| 7 | { |
| 8 | type: 'header', |
| 9 | key: 'User-Agent', |
| 10 | value: |
| 11 | '(.*(AdsBot-Google|Amazonbot|anthropic-ai|Applebot|ArcMobile|AwarioRssBot|AwarioSmartBot|Bytespider|CCBot|ChatGPT-User|Claude-Web|ClaudeBot|cohere-ai|DataForSeoBot|Diffbot|FacebookBot|FriendlyCrawler|Google-Extended|Googlebot-Image|Googlebot-Image|GoogleOther|GPTBot|ImagesiftBot|img2dataset|magpie-crawler|Meltwater|msnbot-media|omgili|omgilibot|peer39_crawler|PerplexityBot|PiplBot|Seekr|scoop.it|yandex|YouBot).*)', |
| 12 | }, |
| 13 | ], |
| 14 | destination: 'https://hil-speed.hetzner.com/10GB.bin', |
| 15 | permanent: false, |
| 16 | }, |
| 17 | ] |
| 18 | }, |
| 19 | } |
| 20 | |
| 21 | module.exports = nextConfig |
| 22 |