Skip to content

Commit 7a5c328

Browse files
committed
Fix single css build issue
1 parent 0c85499 commit 7a5c328

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

apps/landing/next.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
import { dirname, join } from 'node:path'
2+
import { fileURLToPath } from 'node:url'
3+
14
import { DevupUI } from '@devup-ui/next-plugin'
25
import createMDX from '@next/mdx'
36

7+
const appRoot = dirname(fileURLToPath(import.meta.url))
8+
49
const withMDX = createMDX({
510
extension: /\.mdx?$/,
611
})
@@ -13,6 +18,8 @@ export default withMDX(
1318
reactCompiler: true,
1419
},
1520
{
21+
devupFile: join(appRoot, 'devup.json'),
22+
distDir: join(appRoot, 'df'),
1623
singleCss: process.env.DEVUP_SINGLE_CSS === '1',
1724
},
1825
),

bun.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)