From 0b52f6b1f093aaac4a27f924f3b77a0ff3b48ed6 Mon Sep 17 00:00:00 2001 From: Batuhan Wilhelm Date: Mon, 2 Dec 2024 16:30:06 +0300 Subject: [PATCH] feat: add output standalone and .dockerignore (#414) --- refine-nextjs/template/.dockerignore | 7 +++++++ refine-nextjs/template/next.config.mjs | 1 + 2 files changed, 8 insertions(+) create mode 100644 refine-nextjs/template/.dockerignore diff --git a/refine-nextjs/template/.dockerignore b/refine-nextjs/template/.dockerignore new file mode 100644 index 00000000..95a8ae34 --- /dev/null +++ b/refine-nextjs/template/.dockerignore @@ -0,0 +1,7 @@ +**/node_modules/ +**/dist +.git +npm-debug.log +.coverage +.coverage.* +.env diff --git a/refine-nextjs/template/next.config.mjs b/refine-nextjs/template/next.config.mjs index 2bee5e0c..2d8a7aec 100644 --- a/refine-nextjs/template/next.config.mjs +++ b/refine-nextjs/template/next.config.mjs @@ -3,6 +3,7 @@ const nextConfig = { <%_ if (answers["ui-framework"] === 'antd') { _%> transpilePackages: ['@refinedev/antd'], <%_ } _%> + output: "standalone" }; export default nextConfig;