forked from JimmyLv/BibiGPT-v1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
36 lines (34 loc) · 923 Bytes
/
next.config.js
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
// This file sets a custom webpack configuration to use your Next.js app
// with Sentry.
// https://nextjs.org/docs/api-reference/next.config.js/introduction
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
const { withSentryConfig } = require('@sentry/nextjs');
/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: true,
images: {
domains: [
process.env.SUPABASE_HOSTNAME || 'xxxx.supabase.co', // to prevent vercel failed
"b.jimmylv.cn",
"avatars.dicebear.com",
// "i2.hdslb.com",
// "avatars.githubusercontent.com",
// "s3-us-west-2.amazonaws.com",
],
},
async rewrites() {
return {
fallback: [
{
source: "/blocked",
destination: "/shop",
},
],
};
},
};
module.exports = withSentryConfig(
module.exports,
{ silent: true },
{ hideSourcemaps: true },
);