Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const remotePatterns = []
// S3 Storage
if (process.env.S3_UPLOAD_ENDPOINT) {
// custom endpoint for providers other than AWS
const url = new URL(process.env.S3_UPLOAD_ENDPOINT);
const url = new URL(process.env.S3_UPLOAD_ENDPOINT)
remotePatterns.push({
hostname: url.hostname,
})
Expand All @@ -25,14 +25,17 @@ if (process.env.S3_UPLOAD_ENDPOINT) {
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns
remotePatterns,
},
// Required to run in a codespace (see https://github.com/vercel/next.js/issues/58019)
experimental: {
serverActions: {
allowedOrigins: ['localhost:3000'],
allowedOrigins: ['localhost:3000'],
},
},
},
typescript: {
ignoreBuildErrors: true,
},
}

export default withNextIntl(nextConfig)