-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
26 lines (22 loc) · 758 Bytes
/
next.config.js
File metadata and controls
26 lines (22 loc) · 758 Bytes
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
/** @type {import('next').NextConfig} */
const withNextIntl = require('next-intl/plugin')('./src/i18n/config.ts');
const nextConfig = {
images: {
domains: ['images.unsplash.com'],
},
output: 'standalone',
experimental: {
serverComponentsExternalPackages: ['@supabase/supabase-js']
}
};
if (process.env.NEXT_PUBLIC_TEMPO) {
nextConfig.experimental = {
...nextConfig.experimental,
// NextJS 13.4.8 up to 14.1.3:
// swcPlugins: [[require.resolve("tempo-devtools/swc/0.86"), {}]],
// NextJS 14.1.3 to 14.2.11:
swcPlugins: [[require.resolve("tempo-devtools/swc/0.90"), {}]]
// NextJS 15+ (Not yet supported, coming soon)
}
}
module.exports = withNextIntl(nextConfig);