Skip to content

Commit 49fcf9d

Browse files
committed
fix: include root path in headers source matching
1 parent 12695ea commit 49fcf9d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

next.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const nextConfig = withBundleAnalyzer({
120120
async headers() {
121121
const headers = [
122122
{
123-
source: '/:path*',
123+
source: '/(.*)',
124124
headers: [
125125
{
126126
key: 'X-Frame-Options',
@@ -136,7 +136,7 @@ const nextConfig = withBundleAnalyzer({
136136

137137
if (!process.env.NEXT_PUBLIC_IS_LIVE) {
138138
headers.push({
139-
source: '/:path*',
139+
source: '/(.*)',
140140
headers: [
141141
{
142142
key: 'X-Robots-Tag',

0 commit comments

Comments
 (0)