Skip to content

Commit

Permalink
fix: next lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Dec 18, 2023
1 parent 426e2b1 commit e497278
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,70 +2,70 @@ const headers = [{ key: 'Cache-Control', value: 'public, max-age=3600' }];

/** @type {import('next').NextConfig} */
const nextConfig = {
transpilePackages: ['data'],
reactStrictMode: false,
experimental: { scrollRestoration: true },
async rewrites() {
async headers() {
return [
{
source: '/sitemaps/:match*',
destination: 'https://api.hey.xyz/sitemap/:match*'
}
headers: [
{ key: 'X-Content-Type-Options', value: 'nosniff' },
{ key: 'X-XSS-Protection', value: '1; mode=block' },
{ key: 'Referrer-Policy', value: 'strict-origin' }
],
source: '/(.*)'
},
{ headers, source: '/about' },
{ headers, source: '/privacy' },
{ headers, source: '/thanks' }
];
},
reactStrictMode: false,
async redirects() {
return [
{
source: '/discord',
destination: 'https://discord.com/invite/B8eKhSSUwX',
permanent: true
permanent: true,
source: '/discord'
},
{
source: '/donate',
destination: 'https://giveth.io/project/hey?utm_source=hey',
permanent: true
permanent: true,
source: '/donate'
},
{
source: '/u/lens/:username*',
destination: '/u/:username*',
permanent: true
permanent: true,
source: '/u/lens/:username*'
},
{
source: '/gitcoin',
destination:
'https://explorer.gitcoin.co/#/round/424/0xd4cc0dd193c7dc1d665ae244ce12d7fab337a008/0xd4cc0dd193c7dc1d665ae244ce12d7fab337a008-4',
permanent: true
permanent: true,
source: '/gitcoin'
},
// Forms
{
source: '/-/token-request',
destination:
'https://hey.height.app/?taskForm=Token-Allowlist-Request-mwarXOg6ks0A',
permanent: true
permanent: true,
source: '/-/token-request'
},
{
source: '/-/verification-request',
destination:
'https://hey.height.app/?taskForm=Verification-Request-fBxpj55hUMmf',
permanent: true
permanent: true,
source: '/-/verification-request'
}
];
},
async headers() {
async rewrites() {
return [
{
source: '/(.*)',
headers: [
{ key: 'X-Content-Type-Options', value: 'nosniff' },
{ key: 'X-XSS-Protection', value: '1; mode=block' },
{ key: 'Referrer-Policy', value: 'strict-origin' }
]
},
{ source: '/about', headers },
{ source: '/privacy', headers },
{ source: '/thanks', headers }
destination: 'https://api.hey.xyz/sitemap/:match*',
source: '/sitemaps/:match*'
}
];
}
},
transpilePackages: ['data']
};

module.exports = nextConfig;

0 comments on commit e497278

Please sign in to comment.