-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.mjs
40 lines (37 loc) · 978 Bytes
/
next.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import createNextIntlPlugin from 'next-intl/plugin'
const withNextIntl = createNextIntlPlugin('./src/i18n.ts')
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
env: {
NEXT_PUBLIC_ENV: process.env.ENV,
NEXT_PUBLIC_API_URL: process.env.API_URL,
NEXT_PUBLIC_TAG_MANAGER_ID: process.env.TAG_MANAGER_ID,
NEXT_PUBLIC_AI_API_KEY: process.env.AI_API_KEY,
NEXT_PUBLIC_STONE_APP_ID: process.env.STONE_APP_ID,
},
images: {
minimumCacheTTL: 60,
remotePatterns: [
{
protocol: 'https',
hostname: '**',
},
],
formats: ['image/avif', 'image/webp'],
},
async headers() {
return [
{
source: '/(.*)',
headers: [
{
key: 'Cache-Control',
value: 'public, max-age=31536000, immutable', // Cache de arquivos estáticos por um longo período
},
],
},
]
},
}
export default withNextIntl(nextConfig)