commit 69f63d5e9a7abfebfc04790e41eae9a604d486b3
parent a83a42841a103cc498425bb40f094956dc9e346a
Author: Daniel D’Aquino <daniel@daquino.me>
Date: Tue, 31 Oct 2023 04:53:07 +0000
Change build target to static export
Fixes: https://github.com/damus-io/website/issues/15
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/next.config.js b/next.config.js
@@ -1,9 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
+ output: 'export',
reactStrictMode: true,
- i18n: {
- locales: ['en-US', 'ja-JP'],
- defaultLocale: 'en-US',
+ images: {
+ unoptimized: true,
},
}
diff --git a/package.json b/package.json
@@ -6,6 +6,7 @@
"dev": "next dev",
"build": "npm run i18n && next build",
"start": "next start",
+ "export": "npm run i18n && next export",
"lint": "next lint",
"extract:i18n": "formatjs extract 'src/{pages,components}/**/*.{js,ts,tsx}' --preserve-whitespace --format transifex --id-interpolation-pattern '[sha512:contenthash:base64:6]' --out-file content/locales/en.json",
"compile:i18n": "formatjs compile-folder --ast --format transifex content/locales content/compiled-locales",