backend/config/middleware.js (view raw)
1module.exports = ({env}) => ({
2 timeout: 10000,
3 load: {
4 after: ['parser', 'router', 'next', 'next-proxy'],
5 },
6 settings: {
7 'next-proxy': {
8 enabled: true,
9 host: env('NEXT_URL', 'http://localhost:3000'),
10 conf: {
11 overrideResponseHeaders: {
12 'next-proxy': true,
13 },
14 },
15 },
16 sentry: {
17 enabled: true,
18 settings: {
19 dsn: env('SENTRY_DSN', null),
20 release: env('VERSION', 'dev'),
21 environment: env('NODE_ENV', 'development'),
22 serverName: env('STRAPI_URL', 'local'),
23 },
24 },
25 },
26});