Skip to content

Commit b0212d1

Browse files
Fix export type
1 parent a72c0fc commit b0212d1

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
run: npm run build
2828
env:
2929
POSTGRES_URL: ${{ secrets.POSTGRES_URL }}
30+
NEXT_EXPORT_TYPE: export
3031

3132
- name: Enable custom domain
3233
run: cp CNAME ./out

next.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const { withSentryConfig } = require('@sentry/nextjs')
44
* @type {import('next').NextConfig}
55
*/
66
const nextConfig = {
7+
output: 'export',
78
images: {
89
remotePatterns: [
910
{
@@ -23,6 +24,10 @@ const nextConfig = {
2324
},
2425
}
2526

27+
if (process.env.NEXT_EXPORT_TYPE === 'export') {
28+
nextConfig.output = 'export'
29+
}
30+
2631
// Only apply Sentry config in production
2732
const isProduction = process.env.NODE_ENV === 'production'
2833

0 commit comments

Comments
 (0)