We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a72c0fc commit b0212d1Copy full SHA for b0212d1
2 files changed
.github/workflows/build.yml
@@ -27,6 +27,7 @@ jobs:
27
run: npm run build
28
env:
29
POSTGRES_URL: ${{ secrets.POSTGRES_URL }}
30
+ NEXT_EXPORT_TYPE: export
31
32
- name: Enable custom domain
33
run: cp CNAME ./out
next.config.js
@@ -4,6 +4,7 @@ const { withSentryConfig } = require('@sentry/nextjs')
4
* @type {import('next').NextConfig}
5
*/
6
const nextConfig = {
7
+ output: 'export',
8
images: {
9
remotePatterns: [
10
{
@@ -23,6 +24,10 @@ const nextConfig = {
23
24
},
25
}
26
+if (process.env.NEXT_EXPORT_TYPE === 'export') {
+ nextConfig.output = 'export'
+}
+
// Only apply Sentry config in production
const isProduction = process.env.NODE_ENV === 'production'
0 commit comments