- multi-stage build - standalone output - layer caching - production dependencies
25 lines
491 B
TypeScript
25 lines
491 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const withPWA = require("next-pwa")({
|
|
dest: "public",
|
|
register: true,
|
|
skipWaiting: true,
|
|
disable: process.env.NODE_ENV === "development",
|
|
});
|
|
|
|
// const nextConfig: NextConfig = {
|
|
// /* config options here */
|
|
// reactStrictMode: true,
|
|
// };
|
|
|
|
const nextConfig: NextConfig = withPWA({
|
|
/* config options here */
|
|
reactStrictMode: true,
|
|
output: "standalone",
|
|
images: {
|
|
formats: ["image/webp", "image/avif"],
|
|
},
|
|
});
|
|
|
|
export default nextConfig;
|