From db4c8dd769c92981cc1b8f25ae320ae3fe51c4ee Mon Sep 17 00:00:00 2001 From: Batuhan Wilhelm Date: Mon, 2 Dec 2024 16:27:41 +0300 Subject: [PATCH] feat: add output standalone and .dockerignore --- refine-nextjs/template/.dockerignore | 9 +++++++++ refine-nextjs/template/next.config.mjs | 1 + 2 files changed, 10 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..055f9426 --- /dev/null +++ b/refine-nextjs/template/.dockerignore @@ -0,0 +1,9 @@ +.git +**/node_modules/ +**/dist +.git +npm-debug.log +.coverage +.coverage.* +.env +.aws \ No newline at end of file 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;