Skip to content

Commit d08a70d

Browse files
committed
Fix default tailwind config always showing in config viewer
1 parent bc9a737 commit d08a70d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

server/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ function createServer ({
1111
shouldOpen,
1212
routerPrefix = ''
1313
}) {
14+
console.log('CONFIG PROVIDER: ', tailwindConfigProvider)
1415
const app = new Koa()
1516

1617
const router = new Router({ prefix: routerPrefix })
1718

18-
router.get('/config.json', (ctx) => {
19-
ctx.body = resolveConfig(tailwindConfigProvider())
19+
router.get('/config.json', async (ctx) => {
20+
const config = await tailwindConfigProvider()
21+
ctx.body = resolveConfig(config)
2022
})
2123

2224
app

0 commit comments

Comments
 (0)