import Intro from '/docs/snippets/breaking-change-page-intro.md'
import MigrationIntro from '/docs/snippets/breaking-change-page-migration-intro.md'
Server proxy configurations are grouped under the server.proxy object#
In Strapi 5, all proxy configuration options are now configured through the server.proxy object in /config/server.js|ts, whether they are for requests made within strapi.fetch or for the global proxy agent for the server.
Breaking change description#
In Strapi v4
server.globalProxyis used to configure all requests throughstrapi.fetch.server.proxyis used to set the value of koa server’sproxyoption.
In Strapi 5
All configuration options are grouped under the server.proxy object.
Migration#
Notes#
Additional information about how the server.proxy configuration works in Strapi 5 is available in the server configuration documentation.
Manual migration#
Users will need to manually update the code:
-
If
server.proxyis used, it needs to move toserver.proxy.koa. -
If
server.globalProxyis used, you have 2 choices:- move it to
server.proxy.globaland be aware that it will now work for HTTP/HTTPS requests in addition tostrapi.fetchrequests, - or move it to
server.proxy.fetchto keep the exact same functionality as in Strapi v4, where only fetch was proxied.
- move it to