-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathnext.config.mjs
More file actions
28 lines (24 loc) · 944 Bytes
/
Copy pathnext.config.mjs
File metadata and controls
28 lines (24 loc) · 944 Bytes
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
import withSerwistInit from "@serwist/next";
const withSerwist = withSerwistInit({
// The path to the service worker source file.
swSrc: "app/sw.ts",
// The path to the generated service worker file.
swDest: "public/sw.js",
// Disable service worker generation in development mode to avoid caching friction.
disable: process.env.NODE_ENV === "development",
});
/** @type {import('next').NextConfig} */
const nextConfig = {
// Enable standalone output for optimized Docker builds
// Note: output: 'standalone' requires the generated sw.js to be served from the public root scope
// which it is, as a static public asset.
output: 'standalone',
experimental: {
serverActions: {
allowedOrigins: ["http://localhost:3000", "https://planet.queue.cx"],
bodySizeLimit: '200mb',
},
},
transpilePackages: ['mapbox_mcp'], // Added to transpile local packages
};
export default withSerwist(nextConfig);