- Add Dockerfile for Next.js application - Configure standalone output for Docker - Add .dockerignore file - Add docker-compose.yml for easy deployment - Update next.config.ts for Docker compatibility
14 lines
303 B
TypeScript
14 lines
303 B
TypeScript
import type { NextConfig } from "next";
|
|
const withPWA = require('next-pwa');
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: 'standalone',
|
|
/* config options here */
|
|
};
|
|
|
|
const config = process.env.NODE_ENV === 'production' ? withPWA({
|
|
dest: 'public',
|
|
})(nextConfig) : nextConfig;
|
|
|
|
export default config;
|