Skip to content

Commit

Permalink
fix: proxy config for compatibility with Next
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Mar 6, 2024
1 parent 247210a commit 566dcee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/frankenphp/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
'*.json*', '*.html', '*.csv', '*.yml', '*.yaml', '*.xml'
)
)
|| path('/favicon.ico', '/manifest.json', '/robots.txt', '/_next*', '/sitemap*')`
|| path('/favicon.ico', '/manifest.json', '/robots.txt', '/sitemap*', '/_next*', '/__next*')
|| query({'_rsc': '*'})`

# Comment the following line if you don't want Next.js to catch requests for HTML documents.
# In this case, they will be handled by the PHP app.
Expand Down

0 comments on commit 566dcee

Please sign in to comment.