Skip to content

Commit

Permalink
chore: update next
Browse files Browse the repository at this point in the history
  • Loading branch information
nick134-bit committed Jul 27, 2024
1 parent 3f2a0d2 commit eafcd15
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ const config = {
destination: '/migaloo/bonding',
permanent: false,
},
{
source: '/bonding',
destination: '/migaloo/bonding',
permanent: false,
},
{
source: '/pools',
destination: '/migaloo/pools',
Expand All @@ -65,6 +60,15 @@ const config = {
// Adding policies:
async headers() {
return [
{
source: '/_next/static/chunks/:slug.js',
headers: [
{
key: 'Content-Type',
value: 'application/javascript',
},
],
},
{
source: '/(.*)',
headers: [
Expand All @@ -78,12 +82,12 @@ const config = {
},
{
key: 'Content-Security-Policy',
value: "frame-ancestors 'none'"
value: "frame-ancestors 'none'",
},
{
key: 'X-Content-Type-Options',
value: 'nosniff',
}
},
],
},
];
Expand Down

0 comments on commit eafcd15

Please sign in to comment.