-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
52 lines (45 loc) · 1.32 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/** @type {import('next').NextConfig} */
const {
createVanillaExtractPlugin
} = require('@vanilla-extract/next-plugin');
const withVanillaExtract = createVanillaExtractPlugin();
// /** @type {import('next').NextConfig} */
// const nextConfig = {};
// module.exports = nextConfig;
/** @type {import('next').NextConfig} */
const path = require('path')
// next.config.js
const nextConfig = {
async rewrites() {
return [
{
source: "/bee.js",
destination: "https://cdn.splitbee.io/sb.js",
},
{
source: "/_hive/:slug",
destination: "https://hive.splitbee.io/:slug",
},
];
},
experimental: {
scrollRestoration: true
},
typescript: {
ignoreBuildErrors: true
},
images: {
domains: ['mirror-media.imgix.net', 'images.mirror-media.xyz', 'res.cloudinary.com', '*.medium.com', 'firebasestorage.googleapis.com'],
},
// webpack: (config, options) => {
// // modify the `config` here
// if (options.isServer) {
// config.externals = ["react", ...config.externals];
// }
// config.resolve.alias['react'] = path.resolve(__dirname, '.', 'node_modules', 'react');
// config.resolve.alias['react-dom'] = path.resolve(__dirname, '.', 'node_modules', 'react-dom');
// return config;
// },
};
// more
module.exports = withVanillaExtract(nextConfig)