Skip to content

Commit

Permalink
Update next.config.js paths
Browse files Browse the repository at this point in the history
  • Loading branch information
theodesp committed Feb 22, 2024
1 parent 1759ce2 commit fe2a599
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/next/app-router/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import { createSecureHeaders } from 'next-secure-headers';
/** @type {import('next').NextConfig} */
export default withFaust({
async headers() {
return [{ source: '/(.*)', headers: createSecureHeaders() }];
return [{ source: '/:path*', headers: createSecureHeaders() }];
},
});
2 changes: 1 addition & 1 deletion examples/next/block-support/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ module.exports = withFaust({
defaultLocale: 'en',
},
async headers() {
return [{ source: '/(.*)', headers: createSecureHeaders() }];
return [{ source: '/:path*', headers: createSecureHeaders() }];
},
});
2 changes: 1 addition & 1 deletion examples/next/faustwp-getting-started/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ module.exports = withFaust({
defaultLocale: 'en',
},
async headers() {
return [{ source: '/(.*)', headers: createSecureHeaders() }];
return [{ source: '/:path*', headers: createSecureHeaders() }];
},
});
60 changes: 60 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fe2a599

Please sign in to comment.