From 774d5b4c538d93889bf743b6cd7d01a85f8715e6 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 25 Feb 2022 17:25:10 +0100 Subject: feat: use Docker in production (#12) * build: add experimental feature outputStandalone With this option, Next.js can create a standalone folder with the necessary files for a production deployment. It will be useful for Docker deployment. * chore: add Docker configuration * docs: update README with Docker instructions --- next.config.js | 1 + 1 file changed, 1 insertion(+) (limited to 'next.config.js') diff --git a/next.config.js b/next.config.js index d85d5ec..077d0a0 100644 --- a/next.config.js +++ b/next.config.js @@ -70,6 +70,7 @@ const securityHeaders = [ /** @type {import('next').NextConfig} */ const nextConfig = { experimental: { + outputStandalone: true, scrollRestoration: true, }, async headers() { -- cgit v1.2.3