-
Notifications
You must be signed in to change notification settings - Fork 4
/
next.config.mjs
30 lines (27 loc) · 905 Bytes
/
next.config.mjs
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
import createPwaPlugin from "next-pwa";
import createBundleAnalyzer from "@next/bundle-analyzer";
import { createVanillaExtractPlugin } from "@vanilla-extract/next-plugin";
import { COLINE_ANALYZE, IS_DEV } from "./src/env/private.mjs";
const withPwa = createPwaPlugin({ dest: "public" });
const withVanillaExtract = createVanillaExtractPlugin();
const withBundleAnalyzer = createBundleAnalyzer({ enabled: !IS_DEV && COLINE_ANALYZE === "true" });
/** @type {import("next").NextConfig} */
const config = {
output: "standalone",
experimental: {
appDir: true,
serverActions: true,
useDeploymentId: true,
useDeploymentIdServerActions: true,
serverComponentsExternalPackages: ["shikiji"],
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "**",
},
],
},
};
export default withPwa(withVanillaExtract(withBundleAnalyzer(config)));