forked from digi-monkey/flycat-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
33 lines (29 loc) · 849 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
const path = require('path');
const { i18n } = require('./next-i18next.config.js');
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
const withPWA = require('next-pwa')({
dest: 'public',
register: true,
disable: process.env.NODE_ENV === 'development',
});
const nextConfig = {
i18n,
reactStrictMode: true,
pageExtensions: ['page.tsx', 'page.ts', 'page.jsx', 'page.js', 'api.ts'],
sassOptions: {
includePaths: [path.resolve(__dirname, 'src')],
prependData: `@import 'styles/mixin.scss';`,
},
transpilePackages: ['antd-mobile', 'lodash-es'],
async rewrites() {
return [
{
source: '/.well-known/nostr.json',
destination: '/api/.well-known/nostr.json',
},
];
},
};
module.exports = withBundleAnalyzer(withPWA(nextConfig));