From c6ea0cd09565e302a3e76f7462b3b19648503539 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Mon, 18 Dec 2023 09:02:49 -0700 Subject: [PATCH] Add instructions to statically build the site. --- README.md | 8 ++++++++ next.config.js | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 12fd202..04d7f16 100644 --- a/README.md +++ b/README.md @@ -36,3 +36,11 @@ You can check out [the Next.js GitHub repository](https://github.com/vercel/next The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. + +## Deploy Somewhere Else + +```sh +npm run build +``` + +The file output will then be at `out/` and contain the HTML, CSS, and JavaScript you need to statically serve the site. diff --git a/next.config.js b/next.config.js index 767719f..fcf8eb6 100644 --- a/next.config.js +++ b/next.config.js @@ -1,4 +1,6 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {} +const nextConfig = { + output: 'export', +} module.exports = nextConfig